/* MailFeller — auth pages (login / register / reset), dashboard-styled, self-contained */
:root {
    --navy: #012970;
    --accent: #2563eb;
    --accent-hi: #1d4ed8;
    --ink: #14171f;
    --ink-2: #58606e;
    --ink-3: #8e96a4;
    --line: #e6eaf5;
    --line-2: #d6ddec;
    --panel: #f5f7fd;
    --pos: #0f9147;
    --neg: #d14343;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    letter-spacing: -.006em;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(1700px 1300px at 0% 0%, rgba(37, 99, 235, .06), transparent 72%),
        #ffffff;
    min-height: 100vh;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 22px;
}
.auth-brand img { width: 30px; height: 30px; animation: mf-logo-spin 8s linear infinite; }
@keyframes mf-logo-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-brand img { animation: none; } }
.auth-brand span {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--navy);
    letter-spacing: .5px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(1, 41, 112, .08);
    padding: 32px 32px 28px;
}

.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--navy);
    margin: 0 0 6px;
}
.auth-head p { font-size: 14px; color: var(--ink-2); margin: 0; }

.auth-field { margin-bottom: 16px; }
.auth-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 7px;
}
.auth-field input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 12px 13px;
    transition: border-color .12s, box-shadow .12s;
}
.auth-field input::placeholder { color: var(--ink-3); }
.auth-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}

.auth-pass { position: relative; }
.auth-pass input { padding-right: 46px; }
.auth-pass-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    cursor: pointer;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.auth-pass-toggle:hover { color: var(--navy); background: var(--panel); }
.auth-pass-toggle i { font-size: 17px; }

.auth-btn {
    width: 100%;
    border: none;
    border-radius: 11px;
    padding: 13px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(120deg, #2a60ec, #2450dc);
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
.auth-btn:hover { background: linear-gradient(120deg, #1d4ed8, #1a45c8); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--line-2);
    border-radius: 11px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.auth-google:hover { border-color: var(--accent); background: var(--panel); }
.auth-google img { width: 18px; height: 18px; }

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.7;
}
.auth-links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }
.auth-note { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

.auth-alert {
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.auth-alert a { font-weight: 600; }
.auth-alert.info { background: #eaf0fc; color: #1e3a8a; border: 1px solid #d3e0fb; }
.auth-alert.info a { color: var(--accent); }
.auth-alert.danger { background: #fce8e8; color: #b83636; border: 1px solid #f6d5d5; }
.auth-alert.danger a { color: #b83636; }
.auth-alert.success { background: #e8f7ee; color: #0d7a3c; border: 1px solid #cdeadb; }

.auth-copyright { margin-top: 26px; font-size: 12.5px; color: var(--ink-3); }
.auth-copyright strong { color: var(--ink-2); }

@media (max-width: 460px) {
    .auth-card { padding: 26px 22px 24px; }
    .auth-head h1 { font-size: 21px; }
}
