body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -2;
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 40px 32px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(15, 15, 15, 0.6) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-container:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 24px 70px rgba(139, 92, 246, 0.15);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
    letter-spacing: -0.03em;
    text-align: center;
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
    font-size: 14px;
    letter-spacing: -0.01em;
    text-align: center;
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-size: 13px;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.auth-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.auth-button:hover::before {
    opacity: 1;
}

.auth-button:active {
    transform: translateY(0);
}

.auth-link {
    text-align: center;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    letter-spacing: -0.01em;
}

.auth-link a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link a:hover {
    color: var(--purple-dim);
}

.error-message,
.success-message,
.invite-code-info {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    letter-spacing: -0.01em;
    display: none;
}

.error-message {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.success-message {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.invite-code-info {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

.error-message.show,
.success-message.show {
    display: block;
}

@media (max-width: 768px) {
    .auth-container {
        max-width: 380px;
        padding: 28px 24px;
    }

    h1 {
        font-size: 22px;
    }
}

/* Popup Notification Styles */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 350px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 60px rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 10001;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.notification-popup.success {
    border-color: rgba(34, 197, 94, 0.4);
}

.notification-popup.error {
    border-color: rgba(139, 92, 246, 0.4);
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.notification-popup.error .notification-icon {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.notification-popup.success .notification-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
    font-size: 13px;
}

.notification-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.4;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.notification-popup.removing {
    animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 480px) {
    .auth-container {
        margin: 0 16px;
        padding: 24px 20px;
    }

    h1 {
        font-size: 20px;
    }

    .notification-popup {
        right: 10px;
        left: 10px;
        top: 20px;
        max-width: none;
    }
}
