.form-signin {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    margin: auto;
}
.form-signin .checkbox {
    font-weight: 400;
}
.form-signin .form-control:focus {
    z-index: 2;
}
.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-radius: 20px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-radius: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: none !important; /* No decorative background in light mode; body background (var(--ui-bg)) will show through */
}

/* Dark-mode override: use richer, deeper gradients when theme set to dark */
[data-bs-theme="dark"] .landing-page {
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.14), transparent 28%), radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 32%), linear-gradient(135deg, #0f172a 0%, #111827 40%, #1f2937 100%);
}

.landing-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    width: min(100%, 1180px);
    align-items: center;
}

.hero-panel {
    color: #ffffff;
}

.hero-logo {
    width: 26rem;
    height: 6.6rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.hero-tagline {
    margin: 0 0 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #fbbf24;
    font-weight: 800;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-title {
    margin: 0 0 1.2rem;
    font-size: clamp(2.5rem, 4vw, 3.45rem);
    font-weight: 800;
    line-height: 1.02;
}

.hero-copy {
    margin: 0 0 1.75rem;
    max-width: 44rem;
    font-size: 1.05rem;
    color: rgba(241, 245, 249, 0.95);
    line-height: 1.8;
}

.hero-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.login-panel {
    display: flex;
    justify-content: center;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 26rem;
    padding: 2rem;
    border-radius: 2rem;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.17);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.login-card-header {
    margin-bottom: 1.5rem;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.login-card-header h2 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}

.login-card-header p {
    margin: 0;
    color: #6b7280;
    line-height: 1.75;
}

.login-form {
    margin-top: 1rem;
}

.login-field {
    margin-bottom: 1rem;
}

.login-form .form-control {
    height: 4.6rem;
    padding: 1.2rem 1rem;
    border-radius: 1.25rem;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.login-form .form-floating label {
    padding-left: 0.9rem;
}

.login-help-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-inline input {
    width: 1rem;
    height: 1rem;
}

.link-muted {
    color: #d81b60;
    font-weight: 700;
    text-decoration: none;
}

.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.75rem 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.login-note {
    margin-top: 1.2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.login-note a {
    color: #d81b60;
    font-weight: 700;
    text-decoration: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}
