/* auth.css - Login and Register Page Styles */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: radial-gradient(circle at 0% 0%, #0f172a 0%, #020617 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    top: -50px;
    left: -50px;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(180px);
    opacity: 0.1;
    bottom: -100px;
    right: -100px;
}

.login-card,
.register-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-header p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    padding-left: 0.2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .material-icons {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
    transition: 0.3s;
}

.form-group input {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 3.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-group input:focus+.material-icons {
    color: var(--primary);
}

.btn-auth {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.5);
    background: var(--primary-light);
}

.btn-auth:active {
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.auth-footer a:hover {
    color: var(--primary-light);
}

.error-msg {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: none;
    font-size: 0.9rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-align: center;
}

.success-msg {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-light);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: none;
    font-size: 0.9rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
}

/* ==========================================================================
   AUTH MOBILE RESPONSIVENESS (<= 576px)
   ========================================================================== */
@media (max-width: 576px) {
    .auth-page {
        padding: 1rem;
    }

    .login-card,
    .register-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

    .auth-header {
        margin-bottom: 1.5rem;
    }

    .auth-logo {
        font-size: 1.4rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .btn-auth {
        padding: 1rem;
        font-size: 1rem;
    }
}