/* ============================================================================
   TechDevs SSO — shared auth styles (app-feel).
   All four auth pages (Login / ForgetPassword / ResetPassword /
   ResetPasswordSuccess) are markup-only and pull from these classes.
   Brand: ink #131210 · accent Blue-Violet #5B4BE8 · Nunito.
   ============================================================================ */

html, body { height: 100%; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background:
        radial-gradient(680px 420px at 50% -8%, rgba(91, 75, 232, 0.12) 0%, transparent 60%),
        #f4f5f7;
    color: #1f2733;
    font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

main { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 20px; }

.auth-shell { width: 100%; max-width: 404px; }

.auth-card {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 22px;
    padding: 38px 34px 28px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 30px 60px -36px rgba(31, 39, 51, 0.45);
}

/* ── brand lockup ── */
.logo-badge {
    width: 60px; height: 60px; border-radius: 16px; background: #131210;
    display: inline-grid; place-items: center; margin-bottom: 16px;
    box-shadow: 0 10px 24px -10px rgba(19, 18, 16, 0.55);
}
.logo-badge svg { width: 60px; height: 60px; }
.wordmark { font-size: 29px; font-weight: 800; letter-spacing: -0.02em; color: #1f2733; }
.subtitle { font-size: 14px; color: #8a93a3; margin: 8px 0 26px; }
.subtitle.has-chip { margin-bottom: 14px; }

/* product chip — mirrors the SSO email chip (favicon + product name) */
.product-chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid #ececf2; border-radius: 999px;
    padding: 6px 13px 6px 7px; margin: 0 0 26px;
}
.product-chip .chip-ico { width: 20px; height: 20px; display: inline-flex; flex: 0 0 20px; }
.product-chip .chip-ico svg { width: 20px; height: 20px; border-radius: 6px; display: block; }
.product-chip .chip-name { font-size: 13px; font-weight: 600; color: #475061; }

/* ── form ── */
form { text-align: left; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: #475061; margin-bottom: 7px; }
.control { position: relative; display: flex; align-items: center; }
.field input {
    width: 100%; background: #f9fafb; border: 1.5px solid #e6e8ec; border-radius: 11px; padding: 12px 13px;
    font-family: inherit; font-size: 14.5px; font-weight: 600; color: #1f2733; outline: none; box-sizing: border-box;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.field input::placeholder { color: #aab2bf; font-weight: 600; }
.field input:focus { background: #fff; border-color: #5b4be8; box-shadow: 0 0 0 4px rgba(91, 75, 232, 0.18); }
.field input:disabled { background: #f1f3f5; color: #8a93a3; cursor: not-allowed; }
.field input.error { border-color: #d9534f; background: #fdf3f2; box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.12); }

.reveal {
    position: absolute; right: 8px; background: none; border: 0; color: #8a93a3; cursor: pointer;
    padding: 6px; border-radius: 8px; display: grid; place-items: center;
}
.reveal:hover { background: #f1f3f5; color: #475061; }
.reveal svg { width: 18px; height: 18px; }

/* ── messages ── */
.error-msg { color: #d9534f; font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.general-error {
    display: flex; align-items: flex-start; gap: 8px; background: #fdeceb; color: #d9534f; border-radius: 10px;
    padding: 10px 12px; font-size: 12.5px; font-weight: 700; margin-bottom: 16px; text-align: left;
}
.general-error svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }
.general-error-list > div + div { margin-top: 4px; }
.field-hint { color: #8a93a3; font-size: 12px; font-weight: 600; margin-top: 6px; }
.success-banner {
    background: #e8f7ef; color: #0f7a4d; border: 1px solid #c6e7d2; border-radius: 11px;
    padding: 13px 14px; font-size: 13px; margin-bottom: 18px; text-align: left; line-height: 1.5;
}
.success-banner strong { font-weight: 800; }

/* ── actions ── */
.between { display: flex; justify-content: flex-end; margin: -2px 0 18px; }
.forgot-link { font-size: 12.5px; font-weight: 700; color: #5b4be8; text-decoration: none; }
.forgot-link:hover { color: #4a3bd0; text-decoration: underline; }

.submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: #131210; color: #fff; border: 0; border-radius: 12px; padding: 13px;
    font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none;
    transition: background 0.14s ease; box-shadow: 0 10px 24px -12px rgba(19, 18, 16, 0.5);
}
.submit-btn:hover { background: #2a2825; color: #fff; text-decoration: none; }
.logout-btn { background: #f1effd; color: #4a3bd0; box-shadow: none; }
.logout-btn:hover { background: #e7e3fb; color: #4a3bd0; }

.back-link { display: inline-block; margin-top: 16px; font-size: 12.5px; font-weight: 700; color: #5b4be8; text-decoration: none; }
.back-link:hover { color: #4a3bd0; text-decoration: underline; }

.checkpoint-message { text-align: center; font-size: 14px; color: #56606e; line-height: 1.6; margin-bottom: 18px; }

.login-foot {
    margin-top: 22px; padding-top: 18px; border-top: 1px solid #eceef1;
    font-size: 12.5px; color: #5c6573; font-weight: 700; text-align: center;
}
.login-foot b { color: #5b4be8; }

/* ── success page ── */
.check {
    width: 60px; height: 60px; border-radius: 50%; background: #e8f7ef;
    display: inline-grid; place-items: center; margin-bottom: 16px;
}
.check svg { width: 32px; height: 32px; color: #15a06a; }
.success-text { font-size: 14.5px; color: #56606e; line-height: 1.6; margin-bottom: 24px; }
.success-text strong { color: #1f2733; font-weight: 800; }
