/* SNT QMS — Professional Login v20260717 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body.snt-login {
    height: 100%;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.snt-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: #0b1220;
}

/* Background */
.snt-login__scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(30, 64, 175, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 85% 80%, rgba(180, 130, 20, 0.18) 0%, transparent 50%),
        linear-gradient(165deg, #0b1220 0%, #111d35 50%, #0a1628 100%);
}

.snt-login__scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 100%);
}

.snt-login__scene::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a227, #f0d060, #c9a227, transparent);
}

/* Main card */
.snt-login__card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 44px 40px 40px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 32px 64px rgba(0, 0, 0, 0.45),
        0 8px 24px rgba(0, 0, 0, 0.2);
    animation: snt-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes snt-card-in {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* Brand block */
.snt-login__brand {
    text-align: center;
    margin-bottom: 32px;
}

.snt-login__logo {
    height: 44px;
    width: auto;
    margin-bottom: 20px;
}

.snt-login__brand h1 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: 6px;
}

.snt-login__brand-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 4px;
}

.snt-login__brand-sub {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

/* Typing placeholder inside email input */
.snt-login__input-wrap--typed { position: relative; }

.snt-login__type-ph {
    position: absolute;
    left: 42px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
}

.snt-login__type-ph.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.snt-login__email-strip { display: none !important; }

.qms-typemail__cursor {
    display: inline-block;
    width: 2px;
    height: 13px;
    background: #c9a227;
    margin-left: 1px;
    vertical-align: middle;
    animation: snt-blink 0.75s step-end infinite;
}

@keyframes snt-blink { 50% { opacity: 0; } }

/* Divider */
.snt-login__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.snt-login__divider::before,
.snt-login__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

/* Form */
.snt-login__form-head {
    margin-bottom: 20px;
}

.snt-login__form-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.snt-login__form-head p {
    font-size: 13px;
    color: #64748b;
}

.snt-login__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.snt-login__field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.snt-login__input-wrap {
    position: relative;
}

.snt-login__input-wrap i.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}

.snt-login__input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.snt-login__input-wrap input::placeholder { color: #94a3b8; }

.snt-login__input-wrap input:focus {
    outline: none;
    border-color: #1e40af;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.snt-login__input-wrap input:focus ~ i.field-icon { color: #1e40af; }

.snt-login__toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    line-height: 1;
}

.snt-login__toggle-pass:hover { color: #1e40af; }

.snt-login__submit {
    margin-top: 4px;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, #1e40af 0%, #1d3a8a 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(30, 64, 175, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.snt-login__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(30, 64, 175, 0.4);
}

.snt-login__submit:active { transform: translateY(0); }

.snt-login__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Alerts */
.snt-login__alert {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.snt-login__alert i { flex-shrink: 0; margin-top: 1px; font-size: 15px; }

.snt-login__alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.snt-login__alert--info {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Footer links */
.snt-login__foot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.snt-login__foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color 0.15s;
}

.snt-login__foot a:hover { color: #1e40af; }

.snt-login__foot a i { font-size: 11px; }

.snt-login__copy {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 4px;
}

/* Loader */
.snt-login__loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1220;
    transition: opacity 0.4s, visibility 0.4s;
}

.snt-login__loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.snt-login__loader-ring {
    width: 36px;
    height: 36px;
    border: 2.5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #c9a227;
    border-radius: 50%;
    animation: snt-spin 0.7s linear infinite;
}

@keyframes snt-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .snt-login__card { padding: 32px 24px 28px; }
    .snt-login__brand-title { font-size: 20px; }
}
