body {
    font-family: 'Roboto',Helvetica,Arial,Lucida,sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eee;
    color: #000;
    height: 100vh;
}

#site-root {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#login-image{
    background-image: url("img/theme_1/aerotrack-logo.svg");
    height: 155px;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
}

#background {
	position: absolute;
	inset: 0;
	background-position: center;
    background-image: none; 
    background-size: cover;
    filter: blur(2px) brightness(1.2);
    z-index: 1;
}

strong {
    font-weight: 500;
}

.login-container, .offline-container {
    display: flex;
    width: 100%;
    max-width: 1250px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 10px;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.2s ease-in;
}

.status-checking .offline-container,
.status-checking .login-container {
    opacity: 0;
}

.status-online .offline-container {
    display: none;
}

.status-offline .login-container {
    display: none;
}

.status-offline .offline-container {
    opacity: 1;
}

.offline-image {
    width: 100%;
    height: 750px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 66.67%;
    height: 750px;
    margin: 0;
    padding: 0;
    max-width: 1250px;
    display: block;
    /* Set by watchSlideScale() in scripts.js */
    --slide-scale: 1;
    --slide-stage-width: 640;
    --slide-stage-height: 576;
}

.carousel,
.carousel .slick-list,
.carousel .slick-track {
    width: 100%;
    height: 100%;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HTML slides (slides.json): laid out at the 640px design width, then scaled to fit */
.slide {
    position: relative;
    height: 100%;
    overflow: hidden;
    background-color: var(--slide-base, #4B6F49);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.slide-stage {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: calc(var(--slide-stage-width) * 1px);
    height: calc(var(--slide-stage-height) * 1px);
    /* The bottom padding leaves room for .carousel-nav */
    padding: 40px 44px 80px;
    transform: scale(var(--slide-scale));
    transform-origin: 0 0;
}

.slide-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slide-eyebrow i {
    font-size: 13px;
}

.slide-title {
    margin: 14px 0 0;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.slide-subtitle {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.slide-subtitle strong {
    font-weight: 700;
    color: #ffffff;
}

.slide-media {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.carousel .slide-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.22));
}

.slide-media::before,
.slide-media::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: none;
    box-sizing: border-box;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.slide-decor-disc::before {
    display: block;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.07);
}

.slide-decor-rings::before {
    display: block;
    width: 300px;
    height: 300px;
    border: 1.5px dashed rgba(255, 255, 255, 0.28);
}

.slide-decor-rings::after {
    display: block;
    width: 224px;
    height: 224px;
    background: rgba(255, 255, 255, 0.07);
}

/* Sits 80px past the slide's right edge, outside the 44px padding */
.slide-decor-disc-right::before {
    display: block;
    left: auto;
    right: -124px;
    width: 280px;
    height: 280px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.07);
}

.slide-highlights {
    position: relative;
    z-index: 1;
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.slide-highlights li {
    display: flex;
    min-width: 0;
}

.slide-highlights i {
    font-size: 17px;
    line-height: 1;
}

.slide-highlight-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.slide-highlight-title {
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 600;
}

.slide-highlight-text {
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}

.slide-highlights-cards li,
.slide-highlights-grid li {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Three across, icon above the label */
.slide-highlights-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.slide-highlights-cards li {
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
}

/* Two columns of ticked items */
.slide-highlights-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}

.slide-highlights-checklist li {
    align-items: center;
    gap: 10px;
}

.slide-highlights-checklist .slide-highlight-title {
    font-size: 14.5px;
}

.slide-highlight-check {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.slide-highlights .slide-highlight-check i {
    font-size: 12px;
}

/* Two by two, with a title and a line of text */
.slide-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.slide-highlights-grid li {
    gap: 10px;
    padding: 11px 12px;
}

.slide-highlights-grid li > i {
    flex: none;
    margin-top: 1px;
}

.slide-highlights-grid .slide-highlight-title {
    font-weight: 700;
}

.release-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.release-heading .slide-header {
    flex: 1 1 auto;
    min-width: 0;
}

/* Illustrations use currentColor for the base colour */
.release-illustration {
    flex: none;
    margin-top: -2px;
    color: var(--slide-base, #4B6F49);
}

.release-illustration svg {
    display: block;
}

.release-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C9F5A8;
    box-shadow: 0 0 0 3px rgba(201, 245, 168, 0.3);
}

.release-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.release-features li {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.release-feature-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 17px;
}

.release-feature-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.release-feature-body h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.release-feature-body p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.release-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.release-note i {
    flex: none;
    margin-top: 3px;
    font-size: 14px;
}

/* Dots and arrows, scaled with the slides and drawn over their bottom edge */
.carousel-nav {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: calc(var(--slide-stage-width) * 1px);
    padding: 0 44px 26px;
    transform: scale(var(--slide-scale));
    transform-origin: 0 100%;
    pointer-events: none;
}

.carousel-nav-dots,
.carousel-nav-arrows {
    pointer-events: auto;
}

.carousel-nav-arrows {
    display: flex;
    gap: 8px;
}

.carousel-nav .slick-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-nav .slick-dots li {
    display: flex;
}

.carousel-nav .slick-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.4);
    font-size: 0;
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.carousel-nav .slick-dots .slick-active button {
    width: 22px;
    background: #ffffff;
}

.carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.24);
}

.carousel-arrow:focus-visible,
.carousel-nav .slick-dots button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.login-box {
    padding: 25px 50px;
    width: 33.33%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.21);
    backdrop-filter: blur(10px);
}

.login-box h2 {
    font-size: 30px;
    color: #000000;
    line-height: 1.4em;
    text-align: left;
    margin-block-start: 0px;
    margin-block-end: 0;
}

.login-box h4 {
    font-family: 'Roboto',Helvetica,Arial,Lucida,sans-serif;
    font-size: 15px;
    color: #424242;
    text-align: left;
    margin-block-start: 0px;
    margin-block-end: 36px;
}

.login-image-box {
    margin-left: auto;
    margin-right: auto;
    line-height: 0;
    display: block;
    text-align: center;
}

.login-image-wrap {
    border: 0 solid #333;
    display: inline-block;
    position: relative;
    max-width: 100%;
}

.login-image {
    height: auto;
    max-width: 100%;
}

.input-group {
    margin-bottom: 12px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    font-size: 15px;
    border: 0px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    font-family: 'Roboto',Helvetica,Arial,Lucida,sans-serif;
    background-color: #F0F0F0;
}

.input-group input::placeholder {
    color: #6c757d; /* Match the placeholder color with the example */
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

.input-group button {
    width: 100%;
    padding: 12px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 7px;
    transition: background-color 0.3s ease;
}

.input-group button:hover:not([disabled]) {
    background-color: #1461c5;
}

#login-submit-button {
    transition: all 0.15s ease-in-out;
}

#login-submit-button[disabled] {
    opacity: 0.9;
    cursor: default;
}

#login-submit-button[disabled] span {
    display: none;
}

#login-submit-button i {
    display: none;
}

#login-submit-button[disabled] i {
    display: inline-block;
}

.login-footer {
    font-size: 11px;
    line-height: 1.4em;
    margin-top: 15px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    word-wrap: break-word;
}

.login-footer p {
    font-family: 'Roboto',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 400 !important;
    text-align: center;
    margin: 0;
}

/* Hide carousel on mobile */
@media (max-width: 1023px) {
    #background {
        background-image: none !important;
        background-color: white;
    }

    #login-image {
        background-image: url("img/theme_1/aerotrack-logo-grey.svg") !important;
    }

    .carousel-container {
        display: none;
    }
    
    .login-container {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        box-shadow: none;
    }
    
    .login-box {
        width: 100%;
        gap: 40px;
    }
}

/* Close button */
.close-btn {
    position: absolute;
    bottom: 10px;
    right: 20px;
    height: 30px;
    width: 100px;
    background: #aaa;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

svg:focus {
    outline: 0;
}

.login-form {
    position: relative;
}

.error-message {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    font-size: 0.9em;
    background: #f04545;
    color: white;
    border: 1px solid #d34343;
    text-align: center;
    border-radius: 5px;
    padding: 7px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.error-message.hidden {
    opacity: 0;
}
