/* E-mail first login (views/auth_email_first.xml) + contrast fix for the
   blue panel of every auth page. Loaded only by website.login_layout. */

/* Blue panel: same look, darker end so white text passes AA (6.6:1). */
.sy-auth-page .sy-auth-panel{background:linear-gradient(135deg,#0f3d5c 0%,#17609a 100%)}
.sy-auth-page .sy-auth-panel p{color:#fff}
/* Trust chips: were white on 12% white (≈3.5:1); now dark glass, 7:1+. */
.sy-auth-page .sy-auth-trust span{background:rgba(4,22,38,.38);border:1px solid rgba(255,255,255,.32);color:#fff;font-weight:800;line-height:1.5}

/* One step at a time */
.sy-ef{direction:rtl;text-align:right}
.sy-ef-title{font-size:1.45rem;font-weight:900;color:#10233f;margin:0 0 6px}
.sy-ef-sub{color:#46566c;line-height:1.8;margin:0 0 18px}
.sy-ef-form{display:flex;flex-direction:column;gap:8px;margin:0}
.sy-ef-label{font-weight:850;color:#10233f;margin:6px 0 0}
.sy-ef-label small{font-weight:600;color:#5b6b80}
.sy-auth-card .sy-ef-input{min-height:54px;font-size:1.08rem;border-radius:12px;border:1.5px solid #c9d7ea}
.sy-auth-card .sy-ef-ltr{direction:ltr;text-align:left}
.sy-auth-card .sy-ef-code{letter-spacing:.5em;font-size:1.35rem;text-align:center;font-variant-numeric:tabular-nums}
.sy-auth-card .sy-ef-input[aria-invalid="true"]{border-color:#b42318}
.sy-ef-error{color:#b42318;font-weight:700;margin:2px 0 0;line-height:1.6}
.sy-auth-card .sy-ef-primary{min-height:54px;width:100%;margin-top:10px;font-size:1.05rem}
.sy-ef-secondary{display:block;width:100%;min-height:50px;margin-top:10px;border:1.5px solid #c9d7ea;border-radius:12px;background:#fff;color:#0b5cab;font-weight:850;line-height:34px}
.sy-ef-secondary:hover{background:#f3f8ff;color:#0b5cab}
.sy-ef-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;border:1.5px solid #c9d7ea;border-radius:12px;background:#fff;color:#1f2a37;font-weight:850}
.sy-ef-google:hover{background:#f7f9fc;color:#1f2a37}
.sy-ef-or{display:flex;align-items:center;gap:10px;margin:18px 0 12px;color:#5b6b80;font-weight:700}
.sy-ef-or::before,.sy-ef-or::after{content:"";flex:1;height:1px;background:#dfe8f5}
.sy-ef-note{color:#5b6b80;font-size:.9rem;line-height:1.7;margin:8px 0 0}
.sy-ef-link{display:inline-block;margin-top:16px;color:#0b5cab;font-weight:800;text-decoration:none}
.sy-ef-row{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin-top:14px;color:#46566c;font-size:.95rem}
.sy-ef .sy-ef-inline{padding:0;border:0;color:#0b5cab;font-weight:800;text-decoration:underline;text-underline-offset:3px;background:none}

/* فرد / شركة — CSS only: the company block shows when «شركة» is checked */
.sy-ef-type{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.sy-ef-radio{position:absolute;opacity:0;width:1px;height:1px}
.sy-ef-choice{flex:1 1 40%;min-height:50px;display:flex;align-items:center;justify-content:center;border:1.5px solid #c9d7ea;border-radius:12px;font-weight:850;color:#10233f;cursor:pointer;margin:0}
.sy-ef-radio:checked+.sy-ef-choice{border-color:#0b5cab;background:#eaf3ff;color:#0b5cab;box-shadow:inset 0 0 0 1px #0b5cab}
.sy-ef-company{display:none;flex:1 1 100%;flex-direction:column;gap:6px;margin-top:6px}
#sy_at_company:checked~.sy-ef-company{display:flex}

/* Visible focus everywhere on the page */
.sy-ef a:focus-visible,.sy-ef button:focus-visible,.sy-ef .sy-ef-input:focus-visible,.sy-ef-radio:focus-visible+.sy-ef-choice{outline:3px solid #f5a524;outline-offset:2px;box-shadow:none}

/* Phone: the form comes first, the blue panel after it */
@media(max-width:991.98px){.sy-auth-page .sy-auth-card{order:-1}.sy-auth-page .sy-auth-shell{display:flex;flex-direction:column}}
@media(max-width:575.98px){.sy-auth-page{padding:16px 12px}.sy-auth-card{padding:20px 16px}.sy-ef-title{font-size:1.3rem}}
