/* ============================================
   MexConverter - Auth Pages (Login / Register)
   Copyright MexTech Limited | mextechltd.name.ng
   ============================================ */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-logo .logo-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-logo .logo-tagline {
    font-size: 12px;
    color: var(--text-muted);
}

.auth-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-elevated);
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: calc(var(--radius) - 2px);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition);
    text-decoration: none;
}

.auth-tab.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.auth-tab:hover:not(.active) {
    color: var(--text-secondary);
}

/* Messages */
.auth-error,
.auth-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 20px;
}

.auth-error {
    background: rgba(192, 57, 43, 0.12);
    border: 1px solid rgba(192, 57, 43, 0.35);
    color: #e74c3c;
}

.auth-notice {
    background: rgba(74, 124, 47, 0.1);
    border: 1px solid rgba(74, 124, 47, 0.3);
    color: var(--text-accent);
}

.auth-error svg, .auth-notice svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-field { display: flex; flex-direction: column; gap: 7px; }

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

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

.auth-input-wrap > svg {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.auth-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14.5px;
    font-family: var(--font-main);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-input::placeholder { color: var(--text-muted); }

.auth-toggle-pw {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
    padding: 4px;
}
.auth-toggle-pw:hover { color: var(--text-secondary); }
.auth-toggle-pw svg { width: 16px; height: 16px; }

.auth-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-accent);
    margin-top: 4px;
}

.auth-submit:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(74,124,47,0.4); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-submit svg { width: 18px; height: 18px; }

.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.auth-switch {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-switch a {
    color: var(--text-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}
.auth-switch a:hover { color: var(--accent-light); }

.auth-footer-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
}
