/* Enhanced Auth Pages - Premium Styling to Match Homepage */

/* Auth Page Container with Background Effects */
.auth-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(244, 114, 182, 0.1) 0%, transparent 50%);
}

/* Background Blobs - Same as Homepage */
.auth-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
}

.auth-blob-1 {
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.auth-blob-2 {
    bottom: -200px;
    left: -200px;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.1) 0%, transparent 70%);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 20px);
    }
}

/* Premium Auth Container with Glassmorphism */
.auth-container {
    max-width: 480px;
    margin: 8rem auto 4rem;
    padding: 3rem 2.5rem;
    background: rgba(26, 27, 46, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient border on hover */
.auth-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.auth-container:hover::before {
    opacity: 0.3;
}

.auth-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Title */
.auth-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    background: linear-gradient(135deg, #f8f9fb 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Premium Input Styling */
.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 11, 20, 0.6);
    color: var(--color-text);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-family: var(--font-sans);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.form-group input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(10, 11, 20, 0.8);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15),
        0 4px 16px rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

/* Enhanced Buttons - Match Homepage Style */
.btn-block {
    width: 100%;
    margin-top: 1.5rem;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: var(--font-display);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Divider Styling */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem;
    color: var(--color-text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(139, 92, 246, 0.3) 50%,
            transparent 100%);
}

.divider span {
    padding: 0 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Google Button - Enhanced */
.btn-google {
    background: rgba(255, 255, 255, 0.95);
    color: #1a202c;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Auth Message Alerts */
.auth-message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.auth-message.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.auth-message.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.auth-message.warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: block;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Auth Note (email verification instructions) */
.auth-note {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

/* Resend Verification Button */
.resend-btn {
    margin-top: 1rem;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.resend-btn:hover {
    background: var(--color-primary);
    color: white;
}

.resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer Text and Link */
.auth-container p {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.auth-container p a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-container p a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        margin: 4rem 1rem 2rem;
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .auth-container h1 {
        font-size: 2rem;
    }

    .auth-blob {
        width: 300px;
        height: 300px;
    }

    .form-group input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .btn-primary,
    .btn-google {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}