/**
 * Mr Zero — login / signup auth screens (light theme)
 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body.mz-auth-page {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.12), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.08), transparent 30%),
        linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #ecfeff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #0f172a;
}

body.mz-auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('img/mz-mesh.svg') center/cover no-repeat fixed;
    opacity: 0.06;
    pointer-events: none;
    animation: mz-mesh-drift 28s ease-in-out infinite;
}

.login-container,
.signup-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 34px 32px 30px;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    width: 100%;
    max-width: 420px;
    animation: mz-fade-up 0.5s ease-out both;
}

.signup-container {
    max-width: 460px;
}

.brand-hero {
    text-align: center;
    margin-bottom: 22px;
    padding: 22px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.brand-hero__logo-img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto 12px;
    display: block;
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.2);
}

.brand-hero__logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0f172a;
    line-height: 1.1;
}

.brand-hero__logo span { color: #0891b2; }

.brand-hero__tag {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.login-container h1,
.signup-container h1 {
    text-align: center;
    color: #0f172a;
    margin-bottom: 22px;
    font-size: 22px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin: -12px 0 22px;
    font-size: 14px;
}

.form-group { margin-bottom: 18px; }

label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
}

label .required { color: #e11d48; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background: #ffffff;
    color: #0f172a;
}

input:focus {
    outline: none;
    border-color: #0891b2;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

input::placeholder { color: #94a3b8; }

.password-toggle {
    transition: all 0.2s ease;
    user-select: none;
    pointer-events: auto;
}

.password-toggle:hover {
    color: #0891b2 !important;
    transform: translateY(-50%) scale(1.08);
}

.error {
    background: #fff1f2;
    color: #9f1239;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid #e11d48;
}

.success {
    background: #ecfdf5;
    color: #065f46;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid #059669;
    line-height: 1.6;
}

.error--warn {
    background: #fffbeb;
    color: #92400e;
    border-left-color: #d97706;
}

button,
.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #ffffff;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover:not(:disabled),
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.25);
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

.login-link {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: 16px;
}

.login-link a {
    color: #0891b2;
    text-decoration: none;
    font-weight: 700;
}

.login-link a:hover { text-decoration: underline; }

.mz-auth-page code {
    background: #f1f5f9;
    color: #0e7490;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.mz-auth-page small {
    color: #64748b !important;
}
