/* Cayman Airways ACCB Portal — login page UI */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #2d6fa0;
}

.login-page__background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("/Images/login/cayman-login-background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.login-overlay {
    position: fixed;
    inset: 0;
    /* Lighter on the right so hero copy stays crisp over the sky */
    background: linear-gradient(
        90deg,
        rgba(8, 28, 48, 0.34) 0%,
        rgba(8, 28, 48, 0.18) 42%,
        rgba(8, 28, 48, 0.08) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Editable background headline — same place as the old baked-in image text */
.login-hero-copy {
    position: fixed;
    top: clamp(55px, 10vh, 90px);
    right: clamp(70px, 8vw, 140px);
    z-index: 2;
    width: 360px;
    text-align: left;
    color: rgba(192, 209, 230, 0.95);
    pointer-events: none;
    text-shadow: none;
}

.login-hero-copy__line {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 300;
    line-height: 0.96;
    letter-spacing: -0.01em;
    display: block;
}

.login-hero-copy__tagline {
    margin: 20px 0 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 300;
    letter-spacing: 0.01em;
    color: rgba(240, 245, 250, 0.86);
    line-height: 1.25;
}

/*.login-hero-copy__stars {
    margin-left: 6px;
    letter-spacing: 0.12em;
    font-size: 1em;
}*/
.login-hero-copy__stars {
    margin-left: 6px;
    letter-spacing: 0.12em;
    font-size: 1.4em; /* 1. Boosts the size of the stars */
    display: inline-block; /* 2. Allows vertical alignment to work properly */
    vertical-align: -0.08em; /* 3. Pulls the larger stars down to align with text baseline */
    line-height: 0; /* 4. Prevents the larger font from pushing layout rows apart */
}

.login-container {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 5vw 32px 6vw;
    min-height: calc(100vh - 46px);
}

.login-card {
    width: 100%;
    max-width: 340px;
    padding: 24px 26px 22px;
    border-radius: 12px;
    background: rgba(22, 48, 72, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.26),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.login-card__brand {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
}

.login-card__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.login-card__brand-text {
    min-width: 0;
}

.login-card__airline {
    margin: 0 0 6px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
}

.login-card__title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.login-card__subtitle {
    margin: 0;
    font-size: 11.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
}

.login-error {
    margin: 0 0 14px;
    padding: 9px 12px;
    border-radius: 6px;
    background: rgba(176, 40, 40, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-field-group {
    margin-bottom: 12px;
}

.login-field-group--checkbox {
    margin-bottom: 14px;
}

.login-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12.5px;
    font-weight: 400;
    user-select: none;
}

.login-checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #1e88e5;
    cursor: pointer;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 12px;
    color: #8a96a3;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.login-field-input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2933;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field-input::placeholder {
    color: #9aa5b1;
}

.login-field-input:hover {
    background: #fff;
}

.login-field-input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.24);
    background: #fff;
}

.login-input-wrap:focus-within .login-input-icon {
    color: #1e88e5;
}

.login-toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #8a96a3;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    transition: color 0.2s ease;
}

.login-toggle-password:hover {
    color: #1e88e5;
}

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.login-forgot-link {
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-forgot-link:hover {
    color: #fff;
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(180deg, #2196f3 0%, #1976d2 100%);
    color: #fff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(25, 118, 210, 0.38);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.login-submit:hover {
    background: linear-gradient(180deg, #1e88e5 0%, #1565c0 100%);
    box-shadow: 0 8px 22px rgba(25, 118, 210, 0.46);
    transform: translateY(-1px);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.login-page-footer {
    position: relative;
    z-index: 2;
    padding: 11px 5vw 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    line-height: 1.45;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-page-footer a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.login-page-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.login-page-footer__sep {
    margin: 0 8px;
    opacity: 0.55;
}

@media (max-width: 768px) {
    .login-hero-copy {
        top: 18px;
        right: 16px;
        left: auto;
        max-width: min(70vw, 320px);
        text-align: left;
    }

    .login-hero-copy__line {
        font-size: clamp(26px, 7vw, 36px);
    }

    .login-hero-copy__tagline {
        margin-top: 8px;
        font-size: 12px;
    }

    .login-container {
        justify-content: center;
        padding: 110px 18px 32px;
        min-height: calc(100vh - 44px);
    }

    .login-card {
        max-width: 360px;
    }

    .login-page-footer {
        font-size: 10px;
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 400px) {
    .login-options-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-card {
        max-width: 100%;
    }
}

@media (min-width: 1400px) {
    .login-container {
        padding-left: 8vw;
    }
}
