:root {
    --auth-primary: #07557a;
    --auth-primary-dark: #063f5c;
    --auth-accent: #1b84ff;
    --auth-text: #152536;
    --auth-muted: #708090;
    --auth-border: #dce5ed;
    --auth-page: #f4f7fb;
}
.metronic-auth { min-height: 100vh; margin: 0; background: var(--auth-page); color: var(--auth-text); font-family: Inter, "Noto Kufi Arabic", Arial, sans-serif; }
.metronic-auth *, .metronic-auth *::before, .metronic-auth *::after { box-sizing: border-box; }
.auth-layout { display: flex; min-height: 100vh; }
.auth-brand-panel { display: flex; flex: 1 1 50%; align-items: center; justify-content: center; padding: 60px; background: linear-gradient(145deg, var(--auth-primary-dark), var(--auth-primary)); color: #fff; }
.auth-brand-content { width: min(430px, 100%); text-align: center; }
.auth-logo { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; margin-bottom: 28px; border-radius: 24px; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .16); }
.auth-logo img { max-width: 75px; max-height: 75px; object-fit: contain; }
.auth-brand-content h1 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 38px); font-weight: 700; }
.auth-brand-content p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 14px; }
.auth-form-panel { display: flex; flex: 1 1 50%; align-items: center; justify-content: center; padding: 40px; background: var(--auth-page); }
.auth-form-card { width: min(460px, 100%); padding: 42px; border: 1px solid var(--auth-border); border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(18, 45, 73, .08); }
.auth-form-heading { margin-bottom: 28px; }
.auth-eyebrow { color: var(--auth-accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth-form-heading h2 { margin: 8px 0; color: var(--auth-text); font-size: 28px; }
.auth-form-heading p { margin: 0; color: var(--auth-muted); font-size: 13px; }
.auth-alert { min-height: 0; margin-bottom: 12px; border-radius: 8px; font-size: 13px; }
.auth-alert.is-error { min-height: 42px; padding: 12px 14px; border: 1px solid #f5b5bd; background: #fff1f2; color: #b42318; }
.auth-field { display: block; margin-bottom: 18px; }
.auth-field span { display: block; margin-bottom: 7px; color: var(--auth-text); font-size: 13px; font-weight: 600; }
.auth-field input { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--auth-border); border-radius: 8px; outline: none; background: #fff; color: var(--auth-text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.auth-field input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 3px rgba(27, 132, 255, .12); }
.auth-remember { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 22px; color: var(--auth-muted); font-size: 12px; cursor: pointer; }
.auth-remember input { accent-color: var(--auth-accent); }
.auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 0; border-radius: 8px; background: var(--auth-primary); color: #fff; cursor: pointer; font: inherit; font-weight: 700; transition: background .15s, transform .15s; }
.auth-submit:hover { background: var(--auth-primary-dark); transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.auth-form-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; color: var(--auth-muted); font-size: 12px; }
.auth-form-footer a { color: var(--auth-accent); }
@media (max-width: 800px) {
    .auth-layout { display: block; }
    .auth-brand-panel { min-height: 210px; padding: 30px 20px; }
    .auth-brand-content h1 { font-size: 24px; }
    .auth-logo { width: 68px; height: 68px; margin-bottom: 14px; border-radius: 16px; }
    .auth-logo img { max-width: 52px; max-height: 52px; }
    .auth-form-panel { padding: 22px 14px 40px; }
    .auth-form-card { padding: 28px 22px; }
}