/* ============================================================
   EarnZone — Auth Pages (Login / Signup)
   ============================================================ */

body.auth-page {
    background: linear-gradient(160deg, #e8f4ff 0%, #ffffff 50%, #d6eef8 100%);
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────────────── */
.auth-hero {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeSlideIn 0.5s ease;
}

.auth-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 16px;
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
}

.auth-logo-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0080ff, #0050cc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 30px rgba(0,128,255,0.25);
}
.auth-logo-placeholder i {
    font-size: 2rem;
    color: white;
}

.auth-site-name {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0080ff, #0050cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.auth-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Card ─────────────────────────────────────────────────── */
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: 0 8px 40px rgba(0,128,255,0.1);
    border: 1px solid var(--border);
    width: 100%;
    animation: fadeSlideIn 0.4s ease 0.1s both;
}

.auth-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.auth-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ── Google Button ────────────────────────────────────────── */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #dde3ee;
    background: var(--white);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-google:hover {
    background: #f8fafc;
    border-color: #c7d2e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    color: var(--text);
}
.btn-google img {
    width: 20px;
    height: 20px;
}

/* ── Form ─────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 13px 14px 13px 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,128,255,0.12);
    background: var(--white);
}
.form-control::placeholder { color: var(--text-light); }
.form-control.no-icon { padding-left: 14px; }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.toggle-password:hover { color: var(--primary); }

/* ── Signup Bonus Banner ──────────────────────────────────── */
.signup-bonus-banner {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1.5px solid #a7f3d0;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #065f46;
    font-weight: 600;
}
.signup-bonus-banner i { font-size: 1.2rem; color: #10b981; }

/* ── Footer link ──────────────────────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ── Password strength ────────────────────────────────────── */
.password-strength {
    margin-top: 6px;
    height: 4px;
    border-radius: 4px;
    background: var(--border);
    overflow: hidden;
}
.password-strength-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}

/* ── Terms ────────────────────────────────────────────────── */
.terms-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}
.terms-text a { font-weight: 600; }
