* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; color: #263d49; background: radial-gradient(circle at top right, #fad72330, transparent 45%), linear-gradient(150deg, #fafbfb, #edf0f2); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 36px 20px; }
.login-card { width: min(100%, 510px); padding: 36px; border-radius: 24px; background: #ffffffed; border: 1px solid #dfe8ed; box-shadow: 0 24px 60px #0f172a12; }
.login-brand { display: flex; align-items: center; gap: 14px; color: #59656d; font-weight: 700; }
.login-brand img { width: 64px; height: auto; border-radius: 8px; }
h1 { margin: 22px 0 8px; font-size: 30px; color: #172f3e; }
.login-intro, .login-hint, .windows-description p { color: #64748b; font-size: 14px; line-height: 1.7; }
.login-methods { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 6px; padding: 5px; background: #f0f5f7; border-radius: 14px; margin: 24px 0; }
button, input { font: inherit; }
.login-methods button { border: 0; background: transparent; color: #526777; padding: 12px 6px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.login-methods button[aria-pressed="true"] { background: #fff8d5; color: #424e56; box-shadow: 0 3px 10px #193f4610; font-weight: 700; }
label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 700; }
.login-phone-field .iti { width: 100%; }
.login-phone-field .iti__dropdown-content { border-radius: 12px; box-shadow: 0 12px 28px #0f172a18; overflow: hidden; }
.login-phone-field .iti__search-input { direction: rtl; text-align: right; }
input:not([type="hidden"]) { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid #cedce3; border-radius: 12px; background: white; color: #263d49; }
input.login-primary, input.login-secondary { margin-top: 20px; cursor: pointer; font-weight: 700; }
input.login-primary { background: #fad723; border-color: #e5c41b; color: #303b41; }
input.login-secondary { background: #f2f4f5; color: #59656d; border-color: #d7dee2; }
button:focus-visible, input:focus-visible { outline: 3px solid #b89a17; outline-offset: 3px; }
.windows-description { padding: 20px; background: #f3f8fa; border-radius: 16px; border: 1px solid #e0ebee; }
.windows-description p { margin-bottom: 0; }
.login-error { color: #a83131; line-height: 1.65; font-size: 14px; margin-top: 16px; }
.login-error:has(span:empty) { display: none; }
.login-loading { padding: 18px; margin-top: 16px; text-align: center; border-radius: 12px; color: #426573; background: linear-gradient(90deg,#edf3f5 25%,#fff 50%,#edf3f5 75%); background-size: 200% 100%; animation: login-shimmer 1.6s linear infinite; }
[hidden] { display: none !important; }
@keyframes login-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .login-loading { animation: none; } }
@media (max-width: 480px) { .login-card { padding: 24px 18px; } .login-shell { padding: 20px 12px; } }

.login-card { border-top: 4px solid #fad723; }
.login-brand { color: #6a757c; }
.login-methods:not(:has([data-method=windows])) { grid-template-columns: 1.5fr 1fr; }
input.login-primary:hover { background: #edca19; }
.login-languages { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 20px; }
.login-languages button { font: inherit; padding: 8px 14px; border: 1px solid #dfe8ed; border-radius: 10px; background: #f3f8fa; color: #526777; cursor: pointer; }
.login-languages button[aria-pressed="true"] { background: #fff8d5; border-color: #e5c41b; color: #263d49; font-weight: 700; }
.login-methods button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.login-method-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
