/* Shared styling for the Employee (mtsadmin) and Staff login pages. */
:root {
    --mts-navy: #1b2a6b;
    --mts-navy-2: #26398e;
    --mts-rose: #f07587;
    --mts-rose-dark: #e0566e;
    --mts-ink: #1f2540;
    --mts-muted: #6b7290;
    --mts-line: #e3e6f0;
}

body.mts-login-body {
    margin: 0;
    background: #f5f6fb;
    font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--mts-ink);
}

.mts-login {
    display: flex;
    min-height: 100vh;
}

/* ---------- Brand panel ---------- */
.mts-login__brand {
    position: relative;
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 64px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(150deg, var(--mts-navy) 0%, var(--mts-navy-2) 55%, #3b2f7a 100%);
}
.mts-login__brand::before,
.mts-login__brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.mts-login__brand::before {
    width: 520px; height: 520px;
    right: -180px; top: -160px;
    background: radial-gradient(circle, rgba(240,117,135,.38) 0%, rgba(240,117,135,0) 68%);
}
.mts-login__brand::after {
    width: 440px; height: 440px;
    left: -160px; bottom: -180px;
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 70%);
}
.mts-login__brand > * { position: relative; z-index: 1; }

.mts-login__logo {
    display: inline-flex;
    align-self: flex-start;
    background: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.mts-login__logo img { height: 42px; width: auto; display: block; }

.mts-login__hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #fff;
}
.mts-login__hero h1 em { font-style: italic; color: #ffc2cb; }
.mts-login__hero p {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,.78);
    max-width: 460px;
    margin: 0 0 28px;
}
.mts-login__points { list-style: none; margin: 0; padding: 0; }
.mts-login__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    margin-bottom: 14px;
    color: rgba(255,255,255,.92);
}
.mts-login__points .mdi,
.mts-login__points i {
    flex: 0 0 34px;
    width: 34px; height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
}
.mts-login__brandfoot { font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- Form panel ---------- */
.mts-login__form {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.mts-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid var(--mts-line);
    border-radius: 18px;
    padding: 44px 40px 36px;
    box-shadow: 0 24px 60px -24px rgba(27,42,107,.28);
}
.mts-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mts-navy-2);
    background: #eef1fb;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.mts-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--mts-ink);
}
.mts-card .mts-sub { color: var(--mts-muted); font-size: 15px; margin: 0 0 26px; }

.mts-alert {
    background: #fdecef;
    border: 1px solid #f7c6ce;
    color: #b4233a;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    margin-bottom: 20px;
}
.mts-alert span { color: #b4233a !important; }

.mts-field { margin-bottom: 18px; }
.mts-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--mts-ink);
    margin-bottom: 7px;
}
.mts-input {
    position: relative;
    display: flex;
    align-items: center;
}
.mts-input > .mdi:first-child {
    position: absolute;
    left: 14px;
    font-size: 19px;
    color: #9aa1bd;
    pointer-events: none;
}
.mts-input input.form-control {
    height: 48px;
    padding: 0 44px 0 44px;
    border: 1.5px solid var(--mts-line);
    border-radius: 10px;
    background: #fafbff;
    font-size: 15px;
    color: var(--mts-ink);
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.mts-input input.form-control::placeholder { color: #a9afc7; }
.mts-input input.form-control:focus {
    background: #fff;
    border-color: var(--mts-rose);
    box-shadow: 0 0 0 4px rgba(240,117,135,.16);
}
.mts-eye {
    position: absolute;
    right: 6px;
    width: 36px; height: 36px;
    border: 0;
    background: transparent;
    color: #8a91ad;
    border-radius: 8px;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}
.mts-eye:hover { color: var(--mts-navy-2); background: #eef1fb; }

.mts-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin: 4px 0 22px;
}
.mts-row .form-check-input:checked { background-color: var(--mts-rose); border-color: var(--mts-rose); }
.mts-row a { color: var(--mts-navy-2); font-weight: 600; text-decoration: none; }
.mts-row a:hover { text-decoration: underline; }

.mts-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(135deg, var(--mts-rose) 0%, var(--mts-rose-dark) 100%);
    box-shadow: 0 10px 22px -10px rgba(224,86,110,.8);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, filter .12s;
}
.mts-btn:hover { filter: brightness(1.04); box-shadow: 0 14px 26px -10px rgba(224,86,110,.9); }
.mts-btn:active { transform: translateY(1px); }

.mts-switch {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--mts-line);
    text-align: center;
    font-size: 14px;
    color: var(--mts-muted);
}
.mts-switch a { color: var(--mts-navy-2); font-weight: 700; text-decoration: none; }
.mts-switch a:hover { text-decoration: underline; }

.mts-back { margin-top: 22px; font-size: 13px; }
.mts-back a { color: var(--mts-muted); text-decoration: none; }
.mts-back a:hover { color: var(--mts-navy-2); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .mts-login { flex-direction: column; }
    .mts-login__brand { flex: 0 0 auto; padding: 28px 24px 30px; gap: 18px; }
    .mts-login__hero h1 { font-size: 26px; margin-bottom: 8px; }
    .mts-login__hero p,
    .mts-login__points,
    .mts-login__brandfoot { display: none; }
    .mts-login__form { padding: 28px 16px 40px; }
}
@media (max-width: 480px) {
    .mts-card { padding: 32px 22px 28px; border-radius: 14px; }
}
