/* ==========================================================================
   Sign in / register / forgot / reset password (auth/layout.blade.php).
   Same design system as the app (css/app-theme.css tokens): navy brand panel like the
   sidebar, white card like the app panels, blue accent.
   ========================================================================== */

body.auth-page {
    margin: 0;
    min-height: 100vh;
    background: var(--app-bg);
    color: var(--app-ink);
    font-family: 'SourceSansPro', 'Source Sans Pro', 'Open Sans', sans-serif;
    font-size: 15px;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- left: brand panel ---------- */
.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 42%;
    max-width: 560px;
    padding: 40px 48px;
    overflow: hidden;
    background: linear-gradient(160deg, #13233a 0%, var(--app-sidebar) 55%, #0a1422 100%);
    color: #fff;
}
/* soft accent glows */
.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.auth-brand::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -180px;
    background: radial-gradient(circle, rgba(30, 136, 229, .35) 0%, rgba(30, 136, 229, 0) 70%);
}
.auth-brand::after {
    width: 360px;
    height: 360px;
    bottom: -150px;
    left: -140px;
    background: radial-gradient(circle, rgba(245, 158, 11, .22) 0%, rgba(245, 158, 11, 0) 70%);
}
.auth-brand > * { position: relative; z-index: 1; }

.auth-brand-logo {
    display: inline-flex;
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: var(--app-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.auth-brand-logo img { display: block; height: 42px; width: auto; }

.auth-brand-copy h2 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
.auth-brand-copy p {
    margin: 0 0 28px;
    color: var(--app-sidebar-text);
    font-size: 16px;
}
.auth-brand-points {
    margin: 0;
    padding: 0;
    list-style: none;
}
.auth-brand-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
}
.auth-point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(30, 136, 229, .18);
    color: #7cc0ff;
    font-size: 16px;
}
.auth-brand-foot { color: #7f8ea3; font-size: 13px; }

/* ---------- right: the form card ---------- */
.auth-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.auth-card {
    width: 100%;
    min-width: 0;
    max-width: 440px;
    padding: 36px 36px 28px;
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 40px rgba(16, 24, 40, .08);
}
.auth-card.auth-card-wide { max-width: 620px; }
.auth-card-logo { display: none; margin-bottom: 18px; }
.auth-card-logo img { height: 40px; width: auto; }

.auth-card-head { margin-bottom: 22px; }
.auth-card-head h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: var(--app-ink);
}
.auth-card-head p { margin: 0; color: var(--app-muted); font-size: 15px; }
.auth-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--app-accent-soft);
    color: var(--app-accent);
    font-size: 20px;
}
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff4e0;
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
}

/* alerts (Core::showAlert / validation) */
.auth-card .alert {
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 0;
    border-radius: var(--app-radius-sm);
    font-size: 14px;
}
.auth-card .alert-danger { background: #fdecec; color: #b42318; }
.auth-card .alert-success { background: #e8f7ee; color: #15803d; }
.auth-card .alert-info { background: var(--app-accent-soft); color: var(--app-accent-dark); }
.auth-card .alert-warning { background: #fff4e0; color: #b45309; }

/* fields */
.auth-form .form-group { margin-bottom: 16px; }
.auth-label {
    display: block;
    margin-bottom: 6px;
    color: var(--app-ink);
    font-size: 13px;
    font-weight: 700;
}
.auth-label .required { color: var(--app-danger); }
.auth-field { position: relative; }
.auth-field-icon {
    position: absolute;
    top: 15px;
    left: 14px;
    z-index: 3;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}
.auth-form .form-control {
    height: 46px;
    padding: 10px 14px 10px 40px;
    border: 1px solid #d5dde8;
    border-radius: 10px;
    background: #fbfcfe;
    color: var(--app-ink);
    font-size: 15px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.auth-form .form-control:focus {
    border-color: var(--app-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, .15);
}
.auth-form .form-control[readonly] { background: var(--app-soft); color: var(--app-muted); }
.auth-form select.form-control { padding-left: 38px; }
.auth-field:focus-within .auth-field-icon { color: var(--app-accent); }

/* Metronic .input-icon wrapper (its error icon on the right, used by login.js); components.css is not loaded here */
.auth-form .input-icon { position: relative; }
.auth-form .input-icon > i {
    position: absolute;
    top: 15px;
    right: 14px;
    z-index: 3;
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
    color: var(--app-danger);
    font-size: 15px;
    line-height: 16px;
}
.auth-form .input-icon > .form-control { padding-right: 40px; }
.auth-form .has-error .form-control { border-color: var(--app-danger); background: #fffafa; }
.auth-form .has-error .auth-field-icon { color: var(--app-danger); }
.auth-form .help-block { margin: 6px 0 0; color: var(--app-danger); font-size: 13px; }

/* show / hide password */
.auth-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 46px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 16px;
}
.auth-eye:hover,
.auth-eye:focus { color: var(--app-accent); outline: none; }
.auth-field .auth-eye + .form-control,
.auth-field input[type="password"]:not(.pswstrength) { padding-right: 44px; }

/* password strength (login.js .pswstrength) */
.auth-strength.progress {
    height: 8px;
    margin: 8px 0 16px;
    border-radius: 999px;
    background: var(--app-soft);
    box-shadow: none;
}
.auth-strength .progress-bar {
    border-radius: 999px;
    font-size: 0;
    box-shadow: none;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 20px;
}
.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--app-muted);
    font-weight: 600;
    cursor: pointer;
}
.auth-check .checker { margin: 0 !important; }
.auth-link { color: var(--app-accent); font-weight: 700; }
.auth-link:hover,
.auth-link:focus { color: var(--app-accent-dark); text-decoration: none; }

.btn.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--app-accent) 0%, var(--app-accent-dark) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(30, 136, 229, .28);
    transition: transform .1s, box-shadow .15s, filter .15s;
}
.btn.auth-btn:hover,
.btn.auth-btn:focus { color: #fff; filter: brightness(1.05); box-shadow: 0 10px 22px rgba(30, 136, 229, .34); }
.btn.auth-btn:active { transform: translateY(1px); }

.auth-switch {
    margin: 18px 0 0;
    color: var(--app-muted);
    text-align: center;
}

/* ---------- small screens: the card alone, logo on top ---------- */
@media (max-width: 991px) {
    .auth-brand { display: none; }
    .auth-card-logo { display: inline-block; }
    .auth-main { padding: 28px 16px; }
}
@media (max-width: 480px) {
    .auth-card { padding: 26px 20px 22px; border-radius: 14px; }
    .auth-card-head h1 { font-size: 23px; }
    .auth-row { flex-wrap: wrap; }
}
