* { box-sizing: border-box; }
:root {
    --yellow: #fdd835;
    --yellow-dark: #dfbd16;
    --blue: #1267d9;
    --blue-dark: #0d4fa8;
    --ink: #17233f;
    --muted: #667085;
    --line: #dfe4ea;
}
html, body { margin: 0; min-height: 100%; }
body { 
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Roboto", sans-serif; 
    color: var(--ink); 
    background: #f4f5f7; 
    display: flex;
    flex-direction: column;
}

/* Top Banner */
.top-banner {
    width: 100%;
    background: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.banner-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    display: block;
}

button, input { font: inherit; }
.login-shell { flex: 1; padding: 40px 28px; display: grid; place-items: center; }

.login-container {
    width: min(920px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(23, 35, 63, .13);
}

/* ---------- Brand side ---------- */
.brand-side {
    position: relative;
    padding: 32px;
    display: flex;
    flex-direction: column;
    color: #222;
    background: var(--yellow);
}

/* MODIFIED: Centered the logo and text */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers horizontally */
    text-align: center;      /* Centers the text inside the span */
    gap: 9px;
    font-size: 18px;
    font-weight: 700;
}
.brand-logo svg { 
    fill: none; 
    stroke: currentColor; 
}

.slides-window { flex: 1; display: grid; place-items: center; margin-top: 20px; }
.slide { display: none; width: 100%; text-align: center; }
.slide.active { display: block; animation: reveal .35s ease; }
.vector-circle {
    width: 180px; height: 180px;
    margin: 0 auto 28px;
    display: grid; place-items: center;
    border: 1px solid rgba(34,34,34,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.35);
}
.vector-circle svg { color: #1d3f6e; }
.brand-footer h2 { margin: 0 0 8px; font-size: 25px; }
.brand-footer p { max-width: 340px; margin: auto; color: #4d4a25; font-size: 13px; line-height: 1.6; }
.dots-indicator { display: flex; justify-content: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(34,34,34,.25); }
.dot.active { width: 22px; border-radius: 10px; background: #222; }

/* ---------- Form side ---------- */
.form-side { padding: 40px 50px; display: grid; place-items: center; }
.form-wrapper { width: min(400px, 100%); }

.banner-wrapper {
    width: 100%;
    margin-bottom: 20px;
}
.form-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid var(--line); 
}

.system-title { margin: 0; font-size: 29px; letter-spacing: 0; line-height: 1.2; }
.system-subtitle { margin: 0 0 20px 0; color: var(--muted); font-size: 13px; }
.sign-in-heading { margin: 0 0 18px 0; font-size: 18px; }

.form-block label { display: block; margin-bottom: 7px; color: #344054; font-size: 12px; font-weight: 600; }
.form-block input {
    width: 100%; height: 42px; padding: 0 12px;
    border: 1px solid #cfd5dd; border-radius: 5px;
    color: var(--ink); outline: none;
}
.form-block input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(18,103,217,.1); }

.submit-btn, .secondary-btn {
    min-height: 40px; padding: 0 15px; border-radius: 5px;
    font-size: 12px; font-weight: 700; cursor: pointer;
}
.submit-btn {
    width: 100%; margin-top: 14px;
    color: #fff; background: var(--blue); border: 1px solid var(--blue);
}
.submit-btn:hover { background: var(--blue-dark); }
.form-block[hidden] { display: none !important; }
.forgot-password-btn {
    display: block; margin: 12px auto 0; padding: 5px;
    border: 0; background: transparent;
    color: var(--blue); font-size: 12px; cursor: pointer;
}
.forgot-password-btn:hover { text-decoration: underline; }
.submit-btn:disabled { opacity: .6; cursor: wait; }
.secondary-btn { color: #344054; background: #fff; border: 1px solid #cfd5dd; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.form-actions .submit-btn { margin: 0; }
.hint { margin: -10px 0 16px; color: var(--muted); font-size: 12px; }
.status-text { min-height: 18px; margin: 14px 0 0; color: #087b5e; font-size: 12px; }
.status-text.error { color: #d93035; }
.hidden { display: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .login-shell { padding: 14px; }
    .login-container { grid-template-columns: 1fr; min-height: 0; }
    .brand-side { min-height: 210px; padding: 22px; }
    .slides-window { display: none; }
    .dots-indicator { display: none; }
    .form-side { padding: 30px 24px; }
}