:root {
    --navy: #123d78;
    --navy-deep: #0b2854;
    --blue: #1769d2;
    --ink: #172d4d;
    --muted: #718096;
    --line: #e5ebf3;
    --surface: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    min-height: 100vh;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    color: var(--ink);
    background: #f3f6fb;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.login-page {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    min-height: 100vh;
    background: var(--surface);
    overflow: hidden;
}
.visual-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 38px clamp(30px, 5vw, 78px) 30px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #0b2854 0%, #123d78 47%, #1768bb 100%);
}
.visual-panel::before, .visual-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    pointer-events: none;
}
.visual-panel::before { width: 660px; height: 660px; left: -250px; bottom: -245px; }
.visual-panel::after { width: 480px; height: 480px; left: -160px; bottom: -155px; }
.visual-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.glow-one { width: 400px; height: 400px; top: -190px; right: -130px; background: radial-gradient(circle, rgba(85,173,255,.27), transparent 70%); }
.glow-two { width: 380px; height: 380px; bottom: 3%; right: 2%; background: radial-gradient(circle, rgba(67,140,236,.22), transparent 72%); }
.visual-topline { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; }
.mini-mark { display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 2px; }
.mini-mark span:nth-child(1) { background: #f25022; }.mini-mark span:nth-child(2) { background: #7fba00; }.mini-mark span:nth-child(3) { background: #00a4ef; }.mini-mark span:nth-child(4) { background: #ffb900; }
.visual-content { position: relative; z-index: 1; width: 100%; max-width: 570px; margin: auto 0; padding: 60px 0 52px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; background: rgba(255,255,255,.08); color: #dcecff; font-size: 13px; font-weight: 600; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #71e2c0; box-shadow: 0 0 0 4px rgba(113,226,192,.12); }
.visual-content h1 { margin: 25px 0 17px; font-size: clamp(35px, 4vw, 54px); line-height: 1.55; font-weight: 800; letter-spacing: -.8px; }
.visual-content h1 em { color: #8ecbff; font-style: normal; }
.visual-description { max-width: 470px; margin: 0; color: rgba(240,247,255,.76); font-size: 15px; line-height: 2.1; }
.service-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 42px; }
.preview-card { min-height: 125px; padding: 16px 14px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid rgba(255,255,255,.17); border-radius: 17px; background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.055)); box-shadow: 0 12px 30px rgba(4,22,51,.08); backdrop-filter: blur(8px); }
.preview-icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 12px; border-radius: 11px; background: rgba(255,255,255,.14); color: #fff; font-size: 21px; }
.preview-card > span:nth-child(2) { font-size: 13px; font-weight: 700; }
.preview-card small { margin-top: 4px; color: rgba(237,245,255,.65); font-size: 10px; }
.visual-footer { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.66); font-size: 12px; }
.footer-line { width: 35px; height: 1px; background: #8ecbff; }
.orb { position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); }
.orb-large { width: 170px; height: 170px; top: 20%; left: -100px; box-shadow: inset 0 0 35px rgba(255,255,255,.03); }
.orb-small { width: 44px; height: 44px; top: 25%; left: 11%; background: rgba(255,255,255,.05); }
.form-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 42px clamp(26px, 5.5vw, 84px) 22px; background: #fff; }
.form-wrap { width: 100%; max-width: 410px; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(50px, 8vh, 84px); text-decoration: none; }
.brand img { display: block; width: 53px; height: 53px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { color: var(--navy); font-size: 17px; font-weight: 800; }
.brand-copy small { color: #8a98aa; font-size: 11px; }
.welcome-tag { display: inline-block; margin-bottom: 12px; color: var(--blue); font-size: 12px; font-weight: 700; }
.welcome-block h2 { margin: 0; color: #172d4d; font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.welcome-block p { margin: 12px 0 30px; color: var(--muted); font-size: 14px; line-height: 2; }
.microsoft-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; padding: 13px 48px; border: 1px solid #d9e2ef; border-radius: 12px; background: #fff; color: #243a58; text-decoration: none; font-size: 14px; font-weight: 700; box-shadow: 0 5px 18px rgba(20,55,99,.045); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.microsoft-button:hover { transform: translateY(-2px); border-color: #9dbbe1; background: #fbfdff; box-shadow: 0 12px 26px rgba(20,55,99,.10); }
.microsoft-button:focus-visible { outline: 3px solid rgba(23,105,210,.28); outline-offset: 3px; }
.microsoft-icon { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); gap: 2px; }
.microsoft-icon i:nth-child(1) { background: #f25022; }.microsoft-icon i:nth-child(2) { background: #7fba00; }.microsoft-icon i:nth-child(3) { background: #00a4ef; }.microsoft-icon i:nth-child(4) { background: #ffb900; }
.button-arrow { position: absolute; left: 18px; color: #8a9ab0; font-size: 19px; transition: transform .2s ease; }
.microsoft-button:hover .button-arrow { transform: translateX(-3px); }
.security-note { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding: 16px; border: 1px solid #e7eef7; border-radius: 13px; background: #f8faff; }
.security-icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 11px; background: #e8f1ff; color: #2166bd; }
.security-icon svg { width: 21px; height: 21px; }
.security-note strong, .security-note small { display: block; }
.security-note strong { color: #2c4667; font-size: 12px; font-weight: 700; }
.security-note small { margin-top: 3px; color: #8190a5; font-size: 11px; line-height: 1.8; }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 15px; }
.form-divider span { flex: 1; height: 1px; background: #edf1f6; }
.form-divider small { color: #a0aabb; font-size: 10px; white-space: nowrap; }
.help-text { margin: 0; color: #8794a6; text-align: center; font-size: 11px; line-height: 1.9; }
.page-footer { display: flex; justify-content: space-between; gap: 14px; width: 100%; max-width: 410px; padding-top: 22px; color: #a0aabb; font-size: 10px; }

@media (max-width: 960px) {
    .login-page { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); }
    .visual-panel { padding-right: 32px; padding-left: 32px; }
    .visual-content h1 { font-size: 38px; }
    .service-preview { gap: 8px; }
    .preview-card { padding: 13px 10px; }
    .form-panel { padding-right: 34px; padding-left: 34px; }
}
@media (max-width: 720px) {
    .login-page { display: flex; flex-direction: column; min-height: 100vh; }
    .visual-panel { min-height: auto; padding: 23px 24px 27px; }
    .visual-content { padding: 35px 0 26px; }
    .visual-content h1 { margin-top: 18px; font-size: clamp(30px, 8vw, 40px); line-height: 1.45; }
    .visual-description { font-size: 13px; line-height: 1.9; }
    .service-preview { gap: 8px; margin-top: 25px; }
    .preview-card { min-height: 100px; padding: 10px 9px; border-radius: 13px; }
    .preview-icon { width: 29px; height: 29px; margin-bottom: 8px; font-size: 17px; }
    .preview-card > span:nth-child(2) { font-size: 11px; }
    .preview-card small { font-size: 9px; }
    .visual-footer { font-size: 11px; }
    .form-panel { flex: 1; padding: 31px 25px 20px; }
    .form-wrap { max-width: 440px; }
    .brand { margin-bottom: 35px; }
    .welcome-block h2 { font-size: 29px; }
    .page-footer { max-width: 440px; }
}
@media (max-width: 380px) {
    .visual-panel { padding-right: 18px; padding-left: 18px; }
    .service-preview { grid-template-columns: 1fr; }
    .preview-card { min-height: auto; display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; align-items: center; }
    .preview-icon { grid-row: span 2; margin: 0; }
    .preview-card small { margin-top: 0; }
    .form-panel { padding-right: 19px; padding-left: 19px; }
    .microsoft-button { padding-right: 30px; padding-left: 30px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
