:root {
    --login-header: #0b3d5c;
    --login-navbar: #0e4a6e;
    --login-accent: #1a8a9e;
    --login-button: #0d9488;
    --login-text: #ffffff;
    --login-ink: #102a43;
    --login-muted: #627d98;
    --login-panel: rgba(255, 255, 255, 0.96);
}

* {
    box-sizing: border-box;
}

html,
body.login-branded {
    margin: 0;
    min-height: 100%;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--login-ink);
    background: #071926;
}

body.login-branded {
    min-height: 100vh;
    overflow-x: hidden;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 100vh;
}

.login-showcase {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--login-header), var(--login-navbar) 55%, #052033);
    color: var(--login-text);
}

.login-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(26, 138, 158, 0.35), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(13, 148, 136, 0.25), transparent 35%);
    pointer-events: none;
    z-index: 1;
}

.login-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.login-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 8s ease;
}

.login-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.login-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(7, 25, 38, 0.82) 15%, rgba(7, 25, 38, 0.45) 55%, rgba(7, 25, 38, 0.75));
}

.login-showcase-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
}

.login-brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand-mark img {
    height: 54px;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.login-brand-mark span {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

.login-hero-copy h1 {
    margin: 0 0 14px;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.15;
    max-width: 12ch;
}

.login-hero-copy p {
    margin: 0;
    max-width: 38ch;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.92;
}

.login-product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.login-product-chips span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.login-slide-dots {
    display: flex;
    gap: 8px;
}

.login-slide-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
}

.login-slide-dots button.is-active {
    background: var(--login-accent);
    width: 28px;
    border-radius: 999px;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background:
        linear-gradient(180deg, #f5f8fb 0%, #e8eef4 100%);
    position: relative;
}

.login-panel::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 138, 158, 0.18), transparent 70%);
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--login-panel);
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(16, 42, 67, 0.12);
    padding: 36px 32px 28px;
    position: relative;
    z-index: 1;
    animation: loginCardIn 0.55s ease both;
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-card-logo img {
    height: 64px;
    max-width: 240px;
    object-fit: contain;
}

.login-card h2 {
    margin: 0 0 6px;
    text-align: center;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.7rem;
    color: var(--login-ink);
}

.login-card .login-sub {
    margin: 0 0 24px;
    text-align: center;
    color: var(--login-muted);
    font-size: 0.95rem;
}

.login-field {
    margin-bottom: 14px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--login-muted);
}

.login-field input,
.login-field select {
    width: 100%;
    height: 46px;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    color: var(--login-ink);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input:focus,
.login-field select:focus {
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px rgba(26, 138, 158, 0.18);
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.login-btn {
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--login-button), var(--login-accent));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.28);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.login-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.login-links {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.login-links a {
    color: var(--login-navbar);
    font-size: 13px;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 22px;
    text-align: center;
    color: var(--login-muted);
    font-size: 12px;
}

.forget-form {
    display: none;
}

.forget-form.is-visible {
    display: block;
}

.login-form.is-hidden {
    display: none;
}

.alert.alert-danger {
    border-radius: 10px;
    margin-bottom: 14px;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: 42vh;
    }

    .login-showcase-content {
        padding: 28px 24px;
    }

    .login-hero-copy h1 {
        max-width: none;
        font-size: 2rem;
    }

    .login-panel {
        padding: 20px 16px 36px;
    }

    .login-card {
        padding: 28px 22px 22px;
        border-radius: 18px;
    }
}