.login-shell {
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.login-page {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Background slider */
.login-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.login-bg-slide {
    position: absolute;
    inset: 0;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.login-bg-slide.active {
    opacity: 1;
}

/* Content on top of background */
.login-content {
    position: relative;
    z-index: 1;
    height: 100vh;
    width: 100%;
}

.login-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
}

.login-top-logo {
    width: 56px;
    height: auto;
}

.login-top-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.login-form-panel {
    position: absolute;
    top: 48px;
    right: 48px;
    width: 360px;
    max-width: calc(100vw - 96px);
}

.login-card-title {
    margin: 0 0 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.login-form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.login-password-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.login-password-row .e-input-group {
    flex: 1;
}

.login-row-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.login-link {
    color: #b3e5fc;
    font-size: 0.875rem;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.login-link:hover {
    text-decoration: underline;
}

.login-error {
    background: rgba(209, 52, 56, 0.9);
    border-radius: 4px;
    padding: 10px 12px;
    color: #fff;
    font-size: 0.875rem;
}

.login-submit {
    width: 100%;
}

.login-signup-row {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.login-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    text-align: center;
    font-size: 0.75rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Secondary auth pages */
.login-page-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #1a2332;
    padding: 24px;
}

.login-card-simple {
    width: min(100%, 420px);
    background: #fff;
    border-radius: 8px;
    padding: 40px 36px;
}

.login-brand-title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2332;
    text-align: center;
}

.login-info-text {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 0.9rem;
    text-align: center;
}

.login-brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

.login-brand {
    text-align: center;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .login-form-panel {
        top: auto;
        right: 16px;
        left: 16px;
        bottom: 64px;
        width: auto;
    }
}
