:root {
    --brand-blue: #1f5bff;
    --brand-purple: #5a2dff;
    --brand-gradient: linear-gradient(135deg, #1f5bff 0%, #3b3bf0 50%, #5a2dff 100%);
    --ink: #14142b;
    --line: #d9dcea;
    --lavender: #eef0ff;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #e9ecf8;
    color: var(--ink);
}

/* Outer frame: whole login sits inside one rounded "app window" */
.page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.shell {
    width: 100%;
    max-width: 1200px;
    min-height: 680px;
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(31, 40, 120, 0.12);
}

/* ---------- Left: form ---------- */
.form-side {
    display: flex;
    align-items: center;
    padding: 3rem 3.5rem;
}

.form-inner {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.brand-mini {
    width: fit-content;
}
.brand-mini span {
    color: var(--ink);
    letter-spacing: 0.18em;
    font-size: 0.85rem;
}
.brand-mini b {
    color: var(--brand-purple);
    font-weight: 600;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-blue);
    background: var(--lavender);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

/* Underline-style inputs */
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6f8a;
    margin-bottom: 0.25rem;
}

.line-input {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 2px solid var(--line);
    transition: border-color 0.2s ease;
}
.line-input > i {
    color: #9a9eb8;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}
.line-input:focus-within {
    border-color: var(--brand-blue);
}
.line-input:focus-within > i {
    color: var(--brand-blue);
}

.line-input .form-control {
    border: 0;
    border-radius: 0;
    padding: 0.7rem 0;
    background: transparent;
    box-shadow: none;
    font-size: 1rem;
}
.line-input .form-control::placeholder {
    color: #b7bbd0;
}

.btn-toggle {
    border: 0;
    background: transparent;
    color: #9a9eb8;
    padding: 0.25rem;
}
.btn-toggle:hover {
    color: var(--brand-blue);
}

/* Validation: input is nested in .line-input, so style the wrapper + show message */
.was-validated .line-field:has(.form-control:invalid) .line-input {
    border-color: var(--bs-form-invalid-border-color);
}
.was-validated .line-field:has(.form-control:invalid) .invalid-feedback {
    display: block;
}
.was-validated .line-field:has(.form-control:valid) .line-input {
    border-color: var(--bs-form-valid-border-color);
}
.was-validated .line-input .form-control {
    background-image: none;
}

.form-check-input:checked {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 91, 255, 0.15);
}
.form-check-label {
    font-size: 0.9rem;
    color: #55597a;
}

.link-brand {
    color: var(--brand-blue);
    text-decoration: none;
}
.link-brand:hover {
    color: var(--brand-purple);
    text-decoration: underline;
}

.btn-brand {
    height: 54px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: box-shadow 0.2s ease;
}
/* Gradient slides in on hover */
.btn-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand-gradient);
    transform: translateX(-101%);
    transition: transform 0.35s ease;
    z-index: -1;
}
.btn-brand:hover,
.btn-brand:focus-visible {
    color: #fff;
    box-shadow: 0 12px 28px rgba(58, 59, 240, 0.35);
}
.btn-brand:hover::before,
.btn-brand:focus-visible::before {
    transform: translateX(0);
}

/* ---------- Right: visual ---------- */
.visual-side {
    background:
        radial-gradient(circle at 30% 20%, rgba(31, 91, 255, 0.18), transparent 55%),
        radial-gradient(circle at 80% 85%, rgba(90, 45, 255, 0.2), transparent 50%),
        var(--lavender);
    flex: 1;
    display: flex;
    border-radius: 1.5rem;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-inner {
    position: relative;
    width: 100%;
    max-width: 520px;
    text-align: center;
    padding: 2rem;
}

.visual-logo {
    width: 100%;
    max-width: 420px;
    /* PNG has empty white space above and below the artwork; crop it off */
    aspect-ratio: 1 / 0.72;
    object-fit: cover;
    mix-blend-mode: multiply; /* hides the PNG's white background on lavender */
}

.visual-title {
    margin-top: 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .shell {
        min-height: auto;
        max-width: 520px;
    }
    .form-side {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .page-wrap {
        padding: 0;
        align-items: stretch;
    }
    .shell {
        border-radius: 0;
        box-shadow: none;
    }
    .form-side {
        padding: 2rem 1rem;
    }
    .title {
        font-size: 1.75rem;
    }
}
