:root {
    --band-from: #011e41;
    --band-mid: #0a2d5c;
    --band-to: #0f6f94;
    --glow: rgba(1, 189, 214, 0.26);
    --glow-alt: rgba(30, 90, 170, 0.28);
    --accent: #4fd6e8;
    --cta: #ff5c39;
    --cta-hover: #eb4823;
    --link: #1a769d;
}

body.login-page-body {
    background-color: #ffffff !important;
    min-height: 100vh;
    margin: 0;
    position: relative;
}

.container-login100::before {
    background-color:transparent;
}

#save-to-homescreen-div {
    cursor: pointer;
}

.iOsShareIcon {
    vertical-align: bottom !important;
    height: 31px; 
    width: 25px;
}

.iOsA2HSImage {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    max-width: 90%; 
    max-height: 40px;
}

.horizon-band {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42vh;
    min-height: 340px;
    overflow: hidden;
    z-index: 1;
}

.horizon-gradient-layer {
    position: absolute;
    inset: 0;
}

/* Multi-step gradient animation */
.horizon-gradient {
    position: absolute;
    inset: -10%;
    background: linear-gradient(
        135deg,
        var(--band-from) 0%,
        var(--band-mid) 55%,
        var(--band-to) 100%
    );
    background-size: 170% 170%;
    animation: horizon-shift 18s ease-in-out infinite;
}

/* Radial Glow */
.horizon-glow-alt {
    position: absolute;
    left: 18%;
    top: 70%;
    width: 52vw;
    height: 52vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-alt) 0%, transparent 62%);
    transform: translate(-50%, -50%);
}

.horizon-glow {
    position: absolute;
    left: 82%;
    top: 35%;
    width: 64vw;
    height: 64vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 64%);
    transform: translate(-50%, -50%);
}

@keyframes horizon-shift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Header Content */
.horizon-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 224px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 24px 8px 24px;
    text-align: center;
    z-index: 2;
}

.horizon-content a {
    outline: none;
    -webkit-tap-highlight-color: transparent; /* Removes mobile tap highlight */
}

/* Modern accessibility fix: hides outline on mouse click, preserves it for keyboard Tab users */
.horizon-content a:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Logo & Tagline */
.header-tagline {
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    margin-top: 10px;
}

/* Allow the logo to fill up space on smaller screen size */
img.login-logo {
    max-width: 100%;
}

.tagline-typed-text {
    color: var(--accent);
    font-weight: 500;
    border-right: 2px solid var(--accent);
    padding-right: 2px;
    animation: blink 0.8s infinite;
}

.logo-tagline-divider {
    width: 48px;
    border: 0;
    border-top: 1px solid var(--accent);
    opacity: 0.6;
    margin: 16px auto 12px auto;
}

.brand-logo-card {
    display: inline-block;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

@keyframes blink {
    50% { border-color: transparent; }
}


#landingpage-wrapper {
    position: relative;
    z-index: 10;
    pointer-events: none; /* Allows clicks to pass through to the logo/header */
}

/* Container that holds and centers the login card */
.inner-login-form {
    padding-top: 224px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.login-card-container {
    width: 100%;
    max-width: 500px;
    pointer-events: auto; /* Re-enables clicks/inputs for the login form card */
}

.login-welcome-text {
    color: var(--link);
    font-size: 15px;
    margin-bottom: 10px;
}

h1.login-header {
    color: #000000;
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 24px;
}


.panel.panel-ll-3-dashboard {
    border: 1px solid rgba(6, 26, 46, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 48px rgba(6, 26, 46, 0.18), 0 4px 12px rgba(6, 26, 46, 0.08) !important;
    background-color: #ffffff !important;
    padding: 15px;
}

/* Dynamic Primary Button */
.btn-brand-primary {
    background-color: var(--cta) !important;
    border-color: var(--cta) !important;
    color: var(--cta-text, #ffffff) !important;
    border-radius: 8px !important;
    letter-spacing: 0.01em;
    padding: 10px 15px;
    margin-top: 15px;
    box-shadow: 0 8px 16px var(--cta-shadow, rgba(255, 92, 57, 0.25)) !important;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out !important;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus {
    /* Uses dynamic --cta-hover variable if available, falling back to color-mix darkener or filter */
    background-color: var(--cta-hover, color-mix(in srgb, var(--cta) 85%, #000000)) !important;
    border-color: var(--cta-hover, color-mix(in srgb, var(--cta) 85%, #000000)) !important;
    color: var(--cta-text, #ffffff) !important;
    box-shadow: 0 10px 20px var(--cta-shadow, rgba(0, 0, 0, 0.2)) !important;
}

.btn-brand-primary:active {
    transform: scale(0.98);
}

.form-control:focus {
    border-color: var(--link);
    box-shadow: 0 0 0 0.2rem rgba(0, 149, 169, 0.15);
}

/* Responsive adjust for smaller screens */
@media (min-width: 768px) {
    .horizon-content {
        height: max(30vh, 236px);
    }
    .inner-login-form {
        padding-top: max(30vh, 236px);
    }
    img.login-logo {
        max-width: 50%;
    }
    .inner-login-form {
        padding-top: max(30vh, 236px);
    }
}

/* MFA code styling */
.mfa-code-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}
.mfa-digit-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #0d1626;
    background-color: #fbfcfd;
    border: 1px solid #d9e1e8;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.mfa-digit-input:focus {
    background-color: #ffffff;
    border-color: var(--link, #0095a9);
    box-shadow: 0 0 0 3px var(--ring, rgba(0, 149, 169, 0.25));
}
@media (max-width: 480px) {
    .mfa-code-container {
        gap: 6px;
    }
    .mfa-digit-input {
        width: 40px;
        height: 48px;
        font-size: 20px;
        border-radius: 8px;
    }
}