/* =====================================================================================
   Athir sign-in pages (Views/Shared/_AuthLayout.cshtml: Login, ForgotPasswordIndex).
   Athir UI standard ERP-DOC-003 colours; font from css/athir-shell.css (Tajawal).
   ===================================================================================== */
.aui-auth-body {
    margin: 0;
    background: #F3F5F8;
    color: #17212F;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}
.aui-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 560px) minmax(0, 1fr);
}

/* ---------- form side ---------- */
.aui-auth-form {
    background: #FFFFFF;
    padding: 36px 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    min-height: 100vh;
}
.aui-auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.aui-auth-logo { height: 40px; width: auto; }
.aui-auth-lang { display: inline-flex; border: 1px solid #CBD4E0; border-radius: 999px; padding: 3px; }
.aui-auth-lang a {
    height: 30px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
    font-size: 13px; color: #33404F; text-decoration: none;
}
.aui-auth-lang a:hover { color: #1D5C96; }
.aui-auth-lang a.is-on { background: #1D5C96; color: #FFFFFF; font-weight: 600; }
.aui-auth-main { flex: 1; display: flex; align-items: center; }
.aui-auth-foot { font-size: 12px; color: #5A6576; }

.aui-auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; margin: 0; }
.aui-auth-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 700; color: #17212F; }
.aui-auth-head p { margin: 0; font-size: 15px; color: #5A6576; }

.aui-auth-alert:empty, .aui-auth-alert.validation-summary-valid { display: none; }
.aui-auth-alert { background: #FDECEA; border: 1px solid #F1C3BE; color: #B42318; border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.aui-auth-alert ul { margin: 0; padding: 0; list-style: none; }

.aui-auth-field { display: flex; flex-direction: column; gap: 8px; }
.aui-auth-field > label { margin: 0; font-size: 13px; font-weight: 600; color: #17212F; }
.aui-auth-input {
    height: 48px; border: 1px solid #CBD4E0; border-radius: 10px; background: #FFFFFF;
    display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #5A6576;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.aui-auth-input:focus-within { border-color: #1D5C96; box-shadow: 0 0 0 4px #E8F0F8; }
.aui-auth-input > svg { width: 18px; height: 18px; flex: none; }
.aui-auth-input input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
    font-family: inherit; font-size: 15px; color: #17212F; padding: 0;
}
.aui-auth-input input.input-validation-error { color: #B42318; }
.aui-auth-input:has(input.input-validation-error) { border-color: #B42318; }
.aui-auth-otp { text-align: center; letter-spacing: 8px; font-size: 18px !important; }
.aui-auth-eye {
    width: 34px; height: 34px; border: 0; background: transparent; color: #5A6576; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex: none;
}
.aui-auth-eye:hover { background: #F3F5F8; color: #1D5C96; }
.aui-auth-eye svg { width: 18px; height: 18px; }
.aui-auth-eye .eye-off { display: none; }
.aui-auth-eye.is-shown .eye-open { display: none; }
.aui-auth-eye.is-shown .eye-off { display: block; }
.aui-auth-error { font-size: 12px; color: #B42318; }
.aui-auth-error:empty { display: none; }
.aui-auth-caps { font-size: 12px; color: #8A5A00; background: #FFF3D6; border-radius: 8px; padding: 6px 10px; }

.aui-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.aui-auth-row a, .aui-auth-back a { color: #1D5C96; font-weight: 600; text-decoration: none; }
.aui-auth-row a:hover, .aui-auth-back a:hover { color: #123E66; text-decoration: underline; }
.aui-auth-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #33404F; cursor: pointer; }
.aui-auth-check input { width: 16px; height: 16px; accent-color: #1D5C96; margin: 0; }

.aui-auth-submit {
    height: 50px; border-radius: 10px; border: 1px solid #1D5C96; background: #1D5C96; color: #FFFFFF;
    font-family: inherit; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; width: 100%;
}
.aui-auth-submit:hover { background: #164C7D; }
.aui-auth-submit:disabled { opacity: .75; cursor: wait; }
.aui-auth-submit svg { width: 18px; height: 18px; }
.aui-auth-submit.is-secondary { background: #FFFFFF; color: #1D5C96; height: 42px; font-size: 14px; }
.aui-auth-submit.is-secondary:hover { background: #E8F0F8; }

.aui-auth-secure { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #5A6576; }
.aui-auth-secure svg { width: 14px; height: 14px; color: #127A55; flex: none; }

.aui-auth-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; font-size: 13px; color: #5A6576; }
.aui-auth-steps li { display: flex; align-items: center; gap: 8px; }
.aui-auth-steps span {
    width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #EEF1F5; color: #4A5565; font-weight: 700; font-size: 12px;
}
.aui-auth-steps li.is-on { color: #1D5C96; font-weight: 700; }
.aui-auth-steps li.is-on span { background: #1D5C96; color: #FFFFFF; }
.aui-auth-steps li.is-done span { background: #E4F4EC; color: #127A55; }
.aui-auth-sep { height: 1px; background: #E3E8EF; margin: 4px 0; }
.aui-auth-sub { font-size: 14px; font-weight: 700; color: #17212F; }
.aui-auth-back { margin: 0; font-size: 13px; color: #5A6576; }

/* ---------- information panel ---------- */
.aui-auth-brand {
    position: relative; overflow: hidden; background: #123E66; color: #FFFFFF;
    padding: 64px 72px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 48px;
}
.aui-auth-pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; }
.aui-auth-brand-text { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.aui-auth-chip { align-self: flex-start; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.aui-auth-brand h2 { margin: 0; font-size: 40px; line-height: 1.35; font-weight: 700; color: #FFFFFF; }
.aui-auth-brand p { margin: 0; font-size: 17px; line-height: 1.8; color: rgba(255, 255, 255, .82); }
.aui-auth-features {
    position: relative; list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 640px;
}
.aui-auth-features li {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 14px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.aui-auth-features li > span {
    width: 38px; height: 38px; border-radius: 10px; background: #FFFFFF; color: #1D5C96;
    display: flex; align-items: center; justify-content: center; flex: none;
}
.aui-auth-features li > span svg { width: 20px; height: 20px; }
.aui-auth-features strong { display: block; font-size: 15px; margin-bottom: 2px; color: #FFFFFF; }
.aui-auth-features small { display: block; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

/* ---------- small screens: form only ---------- */
@media (max-width: 991.98px) {
    .aui-auth { grid-template-columns: minmax(0, 1fr); }
    .aui-auth-brand { display: none; }
    .aui-auth-form { padding: 24px 20px; }
    .aui-auth-card { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 1280px) and (min-width: 992px) {
    .aui-auth-form { padding: 32px 40px; }
    .aui-auth-brand { padding: 48px; }
    .aui-auth-brand h2 { font-size: 32px; }
}
