*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a2b42;
    background: #fff;
}

/* ------------------------------------------------------------------
   split layout
   ------------------------------------------------------------------ */

.split-layout {
    display: flex;
    min-height: 100vh;
}

/* ------------------------------------------------------------------
   brand panel (left)
   ------------------------------------------------------------------ */

.brand-panel {
    flex: 0 0 44%;
    max-width: 560px;
    background: #0c1829;
    color: #d0daea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 3rem;
    position: relative;
    overflow: hidden;
}

/* subtle css grid pattern overlay */
.brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.brand-panel-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
}

/* logo */

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-mark {
    width: 38px;
    height: 38px;
    color: #4d9aff;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
}

.tagline {
    font-size: 1.05rem;
    color: #7a90ae;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* features */

.features {
    list-style: none;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.feature-icon {
    width: 22px;
    height: 22px;
    color: #4d9aff;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #eaf0f9;
    margin-bottom: 0.2rem;
}

.feature span {
    font-size: 0.84rem;
    line-height: 1.5;
    color: #7a90ae;
}

/* ------------------------------------------------------------------
   form panel (right)
   ------------------------------------------------------------------ */

.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #fff;
}

.form-panel-content {
    width: 100%;
    max-width: 380px;
}

/* mobile logo — hidden on desktop */

.mobile-logo {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-logo-mark {
    width: 30px;
    height: 30px;
    color: #1559cf;
}

.mobile-logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0c1829;
    letter-spacing: -0.03em;
}

/* form header */

.form-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0c1829;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

/* form */

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.84rem;
    font-weight: 500;
    color: #3d4f65;
    margin-bottom: 0.4rem;
}

input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid #d0d7e2;
    border-radius: 8px;
    background: #f7f9fb;
    color: #0c1829;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
    color: #9aa6b4;
}

input:focus {
    outline: none;
    border-color: #1559cf;
    box-shadow: 0 0 0 3px rgba(21, 89, 207, 0.12);
    background: #fff;
}

/* error message */

.error-message {
    font-size: 0.84rem;
    color: #c9363b;
    min-height: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-message.visible {
    opacity: 1;
}

/* button */

button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #1559cf;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
    background: #1249ad;
    box-shadow: 0 2px 8px rgba(21, 89, 207, 0.25);
}

button:active {
    background: #0e3d92;
    box-shadow: none;
}

/* forgot link */

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.84rem;
    color: #1559cf;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* footer */

footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ebeef3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #8a95a5;
}

footer p {
    margin: 0;
}

footer nav {
    display: flex;
    gap: 1rem;
}

footer nav a {
    color: #8a95a5;
    text-decoration: none;
}

footer nav a:hover {
    color: #4a5568;
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   responsive: tablet and below (960px)
   ------------------------------------------------------------------ */

@media (max-width: 960px) {
    .split-layout {
        flex-direction: column;
    }

    .brand-panel {
        flex: none;
        max-width: none;
        padding: 2.5rem 2rem;
    }

    .brand-panel-content {
        max-width: 520px;
    }

    .features {
        margin-top: 2rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .feature {
        flex: 1 1 200px;
    }

    .form-panel {
        padding: 2.5rem 2rem;
    }
}

/* ------------------------------------------------------------------
   responsive: mobile (480px)
   ------------------------------------------------------------------ */

@media (max-width: 480px) {
    .brand-panel {
        display: none;
    }

    .mobile-logo {
        display: flex;
    }

    .form-panel {
        padding: 2rem 1.25rem;
        align-items: flex-start;
        padding-top: 3rem;
    }

    .form-panel-content {
        max-width: 100%;
    }

    .form-header h1 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
