/* Hộp thoại tài khoản học viên — resources/views/login-modal/index.blade.php */
.sa-dialog{position:fixed;inset:0;margin:auto;width:min(1140px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:24px;background:#fff;color:#111;box-shadow:0 20px 60px rgba(0,0,0,.3);overflow:hidden}
.sa-dialog::backdrop{background:rgba(17,17,17,.55)}
.sa-dialog[open]{display:block;animation:sa-in .2s ease-out}
@keyframes sa-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.sa-box{position:relative;display:flex;max-height:calc(100dvh - 32px)}
.sa-side{flex:0 0 58%;background:#fff;display:flex;align-items:center;justify-content:center;padding:28px 8px 28px 28px}
.sa-side img{width:100%;height:auto;border-radius:16px}
.sa-main{flex:1;min-width:0;padding:44px 40px 36px;overflow-y:auto;align-self:center;max-height:calc(100dvh - 32px)}
.sa-close{position:absolute;top:12px;right:14px;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#555;font-size:28px;line-height:1;cursor:pointer}
.sa-close:hover{background:#f2f2f2;color:#111}
.sa-title{margin:0 40px 6px 0;font-size:28px;font-weight:800;line-height:1.3;color:var(--LG,#d72229)}
.sa-lead{margin:0 0 18px;font-size:15px;line-height:1.55;color:#444}
.sa-alert{margin:10px 0 14px;padding:10px 14px;border-radius:10px;background:#fdecec;color:#a4161a;font-size:14px;line-height:1.5}
.sa-view{margin-top:14px}
.sa-field{margin-bottom:14px;min-width:0}
.sa-field label{display:block;margin-bottom:6px;font-size:14px;font-weight:700;color:#222}
.sa-req{color:var(--LG,#d72229)}
.sa-field input,.sa-select{display:block;width:100%;height:46px;padding:0 14px;border:1px solid #cfcfcf;border-radius:12px;background:#fafafa;font:inherit;font-size:16px;color:#111;transition:border-color .2s,box-shadow .2s,background-color .2s}
.sa-select{appearance:auto}
.sa-field input:focus,.sa-select:focus{outline:0;border-color:var(--LG,#d72229);background:#fff;box-shadow:0 0 0 3px rgba(215,34,41,.15)}
.sa-field input[aria-invalid=true],.sa-select[aria-invalid=true]{border-color:#dc3545;background:#fff8f8}
.sa-error{margin:6px 0 0;font-size:13px;line-height:1.4;color:#dc3545}
.sa-error:empty{display:none}
.sa-password{position:relative}
.sa-password input{padding-right:48px}
.sa-eye{position:absolute;top:50%;right:6px;transform:translateY(-50%);width:38px;height:38px;border:0;border-radius:8px;background:transparent center/22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");cursor:pointer}
.sa-eye.is-on{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 19c-7 0-11-7-11-7a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 7 11 7a18.5 18.5 0 0 1-2.16 3.19M1 1l22 22'/%3E%3C/svg%3E")}
.sa-eye:hover{background-color:#f0f0f0}
.sa-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.sa-grid[hidden]{display:none}
.sa-grid__full{grid-column:1/-1;margin:-6px 0 12px}
.sa-row-end{display:flex;justify-content:flex-end;margin:-4px 0 16px}
.sa-btn{display:flex;align-items:center;justify-content:center;width:100%;height:50px;margin-top:6px;border:0;border-radius:25px;background:var(--LG,#d72229);color:#fff;font:inherit;font-size:16px;font-weight:700;text-transform:uppercase;cursor:pointer;transition:background-color .2s}
.sa-btn:hover{background:#b01b21}
.sa-btn:disabled{opacity:.7;cursor:wait}
.sa-link{padding:0;border:0;background:none;color:#0b63ce;font:inherit;font-size:14px;cursor:pointer}
.sa-link:hover{text-decoration:underline}
.sa-link--strong{font-weight:700;color:var(--LG,#d72229)}
.sa-foot{margin:18px 0 0;text-align:center;font-size:14px;color:#444}
.sa-hint{margin:-4px 0 14px;font-size:14px;color:#444;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.sa-hint strong{color:var(--LG,#d72229)}
.sa-muted{margin:0 0 12px;font-size:13px;color:#777}
.sa-hint .sa-muted{margin:0}
.sa-otp{letter-spacing:.6em;text-align:center;font-size:22px!important;font-weight:700}
.sa-done{text-align:center}

@media (max-width:991px){
    .sa-side{display:none}
    .sa-main{padding:28px 20px 24px}
}
@media (max-width:520px){
    .sa-dialog{width:100%;max-width:100%;max-height:100dvh;height:100dvh;border-radius:0}
    .sa-box{max-height:100dvh;height:100%}
    .sa-title{font-size:24px}
    .sa-grid{grid-template-columns:1fr}
}
