/* ============================================================
   Auth / Login theme  —  dark surface + crimson accent
   Matches the admin dark sidebar look (theme-sgen). Crimson
   accent comes from COLOR_PRIMARY (#E11D2A) / SECONDARY (#B3121E).
   Markup is intentionally untouched here; this is design only.
   ============================================================ */

body.sgaccount-auth {
    background-color: #0c0b0c;
    /* two contained crimson corner glows over a near-black center — matches staging reference */
    background-image:
        radial-gradient(circle at 0% 0%, rgba(225, 29, 42, 0.22), rgba(225, 29, 42, 0.05) 22%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(225, 29, 42, 0.20), rgba(225, 29, 42, 0.05) 22%, transparent 40%);
    background-repeat: no-repeat;
    color: #e6e6e9;
    min-height: 100vh;
}
body.sgaccount-auth > .site-wrapper {
    padding: 50px 0;
}

a {
    color: #b9b9c2;
    transition: color 0.15s ease;
}
a:hover {
    color: #fff;
    text-decoration: none;
}

/* ----- card ------------------------------------------------ */
.card.card-auth {
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    background-color: #16161a;
    color: #e6e6e9;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 30px;
    overflow: hidden;
}

.card.card-auth > .card-header > h4 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
.card.card-auth > .card-header > p:last-of-type {
    margin-bottom: 0;
    color: #8a8a94;
}

/* ----- form fields ----------------------------------------- */
.card.card-auth .form-group {
    margin-bottom: 22px;
}

.card.card-auth label {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.form-control,
.input-group-text,
.custom-select,
.custom-file-label {
    border-color: transparent;
}

/* full-width light inputs (overrides the legacy 60% width) */
.card.card-auth .form-control,
.card.card-auth.register .form-control {
    width: 100% !important;
    display: block;
    margin: 0;
    background-color: #e9eefb !important;
    color: #1a1a1a;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 16px;
    height: auto;
    font-size: 14px;
}
.card.card-auth .form-control::placeholder {
    color: #8a93a8;
}
.form-control:focus,
.input-group-text:focus,
.custom-select:focus,
.custom-file-label:focus,
.card.card-auth .form-control:focus {
    border-color: #E11D2A;
    box-shadow: 0 0 0 3px rgba(225, 29, 42, 0.25);
    background-color: #f1f4fc !important;
}

/* ----- buttons --------------------------------------------- */
.btn {
    box-shadow: none;
}

/* primary / submit / the legacy btn-white used on login = crimson CTA */
.btn[type="submit"],
.card.card-auth .btn[type="submit"],
.card.card-auth .btn-white {
    width: 100% !important;
    font-size: 15px;
    font-weight: 700;
    padding: 13px;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #E11D2A 0%, #B3121E 100%);
    box-shadow: 0 8px 24px rgba(225, 29, 42, 0.40);
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.btn[type="submit"]:hover,
.card.card-auth .btn[type="submit"]:hover,
.card.card-auth .btn-white:hover {
    color: #fff !important;
    filter: brightness(1.06);
    box-shadow: 0 10px 30px rgba(225, 29, 42, 0.55);
}
.btn[type="submit"]:active,
.card.card-auth .btn-white:active {
    filter: brightness(0.95);
}

.btn.btn-primary {
    background-color: #E11D2A;
    border-color: #E11D2A;
}
.btn-primary:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.disabled:active,
.btn-primary.disabled:hover,
.btn-primary.disabled:focus {
    background-color: #B3121E !important;
    border-color: #B3121E !important;
    color: #fff !important;
}

/* keep the submit button row full width regardless of legacy flex helpers */
.card.card-auth .form-group.d-flex.justify-content-center {
    display: block !important;
}

/* ----- misc ------------------------------------------------ */
.alert {
    padding: 10px 15px;
    font-size: 12px;
    border-radius: 8px;
}

/* Dark-card alert theming — the auth pages don't load the layout-dark theme,
   so Bootstrap's default pale alert colors clash with the dark crimson card.
   Re-color danger/success/warning to translucent tints (mirrors theme-sgen.css). */
body.sgaccount-auth .alert-danger {
    background-color: rgba(255, 15, 15, .14);
    border-color: rgba(255, 15, 15, .35);
    color: #ff9a9a;
}
body.sgaccount-auth .alert-success {
    background-color: rgba(1, 184, 26, .14);
    border-color: rgba(1, 184, 26, .35);
    color: #8ce29a;
}
body.sgaccount-auth .alert-warning {
    background-color: rgba(250, 139, 12, .14);
    border-color: rgba(250, 139, 12, .35);
    color: #ffce8e;
}

/* messages sit flush under the input, aligned with the field/button (no container inset) */
.card.card-auth .auth-messages {
    margin-top: 12px;
}
.card.card-auth .auth-messages .alert {
    margin-bottom: 0;
}

.card.card-auth .text-muted,
.text-muted {
    color: #8a8a94 !important;
}
