.login-page {
    position: relative;
    z-index: 1;
    /* Ensure it's above the background */
    display: flex;
    margin: 0;
    height: 100vh;
    /* border: 1px solid black; */
    flex-direction: column;
    justify-content: space-between;
}

.login-page-image {
    position: fixed;
    /* Cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* background-image: url('../images/karsten-wurth-rafblRbne3o-unsplash.jpg?v=1'); */
    /* background-image: url('../images/autumn_road_3.webp?v=1'); the v=1 is trying to make this image cacheable even though the webpage says no caching */

    /* the v=1 is trying to make this image cacheable even though the webpage says no caching */
    /* Define the variable and use it */
    --login-bg-image: url('../images/autumn_road_3.webp?v=1');
    background-image: var(--login-bg-image);

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: fadeIn 0.5s ease-in-out forwards;
    /* Fade-in animation */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        /* Start invisible */
    }

    to {
        opacity: 0.8;
        /* Fully visible */
    }
}


.login-page-top {
    display: flex;
    margin: 0;
    height: calc(100vh - 25px);
    /* width: 100px; */

    flex-direction: column;
    flex-wrap: wrap;
    /* flex-flow: column wrap; */

    align-items: center;
}

.login-page-bottom {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    /* Centers the remaining items/group */
    font-size: 0.8rem;
    border: 1px solid gray;
    padding: 3px 0 4px 0px;
    color: dimgray;
    text-align: center;
}

.login-logo {
    width: 220px;
    margin-top: 1rem;
    margin-right: 10px;
    margin-bottom: 2rem;
    user-select: none;
}

.login-logo-2 {
    width: 220px;
    margin-top: 1.6rem;
    margin-right: 10px;
    margin-bottom: 0.5rem;
    user-select: none;
}

.login-form {
    width: 300px;
    margin-top: 80px;
}

.login-session-expired-message {
    font-size: 1rem;
    font-weight: 400;
    /* background-color: white; */
    color: white;
    padding: 8px 0 10px 12px;
    /* border: 3px solid white; */
    /* box-shadow: 3px 2px lightgray; */
    margin-bottom: 16px;
    user-select: none;
}

.login-fieldset {
    color: gray;
    background-color: inherit;
    border-color: whitesmoke;
    border-width: 2px;
    border-radius: 0.8rem;
    padding: 0rem 2rem;
}

.login-warning {
    width: 300px;
    height: auto;
    margin: 0;
    padding: 4px 10px;
    font-size: 0.9rem;
    text-align: center;
    background-color: var(--color-background);
    border-radius: 5px;
}

.login-warning:empty {
    display: none;
}

.login-warning-2 {
    height: auto;
    margin: 15px 0;
    padding: 4px 10px 8px 10px;
    font-size: 1rem;
    background-color: var(--color-background);
    font-weight: 600;
    user-select: none;
}

.login-desc-2 {
    font-size: 1rem;
    margin: 25px 20px 10px 20px;
    color: var(--color-text-1);
    user-select: none;
}

.login-update-link {
    color: mediumblue;
    margin-left: 10px;
    font-weight: 600;
}

.login-update-link:hover {
    text-decoration: underline;
    background-color: white;
    text-shadow: 1px 0px navy;
}


.login-copyright {
    /* justify-self: flex-center; */
    margin-left: auto;
    /* pushes it to the center (because spacer takes the other half) */
    margin-right: auto;
    color: white;
    user-select: none;
}

.login-settings {
    margin-right: 10px;
    /* margin-left: auto; */
    color: white;
}

.login-form-label {
    display: inline-block;
    font-size: 0.8rem;
    padding-top: 18px;
    color: var(--color-text-1);
}

.login-form-note {
    display: inline-block;
    font-size: 0.8rem;
    padding-top: 18px;
    color: black;
}

.login-text {
    width: 100%;
    padding: 5px 0px 5px 7px;
    margin: 8px 0;
    border: 2px solid gray;
    border-radius: 4px;

}

.login-text:hover {
    background-color: var(--blue200);
    color: var(--blue900);
}

.login-text:focus {
    background-color: var(--blue100);
    color: var(--blue800);
}

.login-showPw {
    display: flex;
    flex-direction: row;
    height: 25px;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.8rem;
    /* padding-top: 0px; */
}

.login-showPw-label {
    margin-left: 5px;
    color: black;
}

.login-showPw-checkbox {
    margin-left: 5px;
}

.login-button {
    margin: 1.5rem 0 1rem 0;
}

.login-div-button {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.login-div-spinner {
    border: none;
}


.login-link {
    font-size: 0.8rem;
    margin: 0 0 1rem 1rem;
    /* color: var(--color-link); */
    color: mediumblue;
    display: block;
    /* display: flex;
    justify-content: left; */
    cursor: pointer;
    width: auto;
    user-select: none;
}

.login-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


.logged-in {
    margin: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: dimgray;
}

.logged-in-not {
    margin: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-1);
}


.link-forgot-my-password {
    color: royalblue;
    font-size: 0.8rem;
    margin: 10px 0 20px 20px;
    user-select: none;
}

.link-forgot-my-password:hover {
    color: mediumblue;
    text-decoration: underline;
    cursor: pointer;
    text-underline-offset: 4px;
    font-weight: 600;
}

.span-login-status {
    display: none;
    font-size: 16px;
    font-weight: 600;
    color: #2a5caa;
    /* letter-spacing: 0.01em; */
    margin-top: 200px;
}

.img-login-status {
    display: none;
    margin-top: 0px;
    margin-left: 5px;
}

.login-spinner-icon {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(42, 92, 170, 0.18);
    border-top-color: #2a5caa;
    animation: login-spin 0.65s linear infinite;
    flex-shrink: 0;
    margin-top: 20px;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}


.background-selector-div-1 {
    margin: 10px 0 30px 0;
}


/* ── ADMIN AREA AUTHENTICATION PAGE ── */

.admin-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 32px 24px;
    background: var(--color-background);
    background-image:
        linear-gradient(rgba(42, 92, 170, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 92, 170, 0.04) 1px, transparent 1px);
    background-size: 52px 52px;
}

.admin-auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(26, 39, 68, 0.11), 0 2px 8px rgba(26, 39, 68, 0.06);
    padding: 40px 40px 32px;
    animation: adminAuthFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes adminAuthFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.admin-auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(26, 39, 68, 0.08);
}

.admin-auth-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1a2744 0%, #2a5caa 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(26, 39, 68, 0.25);
}

.admin-auth-icon-wrap svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.admin-auth-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #1a2744;
    margin: 0 0 4px 0;
    letter-spacing: 0.01em;
}

.admin-auth-subtitle {
    font-size: 13px;
    color: #6b7694;
    margin: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 11px;
}

.admin-auth-desc {
    font-size: 14px;
    color: #6b7694;
    line-height: 1.65;
    margin: 0 0 16px 0;
    text-align: center;
}

.admin-auth-status {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fd 100%);
    border: 1px solid rgba(42, 92, 170, 0.2);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #2a5caa;
    text-align: center;
    margin-bottom: 24px;
}

.admin-auth-status:empty {
    display: none;
}

.admin-auth-field-group {
    margin-bottom: 20px;
}

.admin-auth-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b7694;
    margin-bottom: 8px;
}

.admin-auth-input-wrap {
    position: relative;
}

.admin-auth-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: #a8afc7;
    pointer-events: none;
    transition: color 0.2s;
}

.admin-auth-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid rgba(26, 39, 68, 0.12);
    border-radius: 7px;
    padding: 12px 14px 12px 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #1a2744;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(26, 39, 68, 0.05);
    letter-spacing: 0.1em;
}

.admin-auth-input::placeholder {
    color: #a8afc7;
    letter-spacing: 0.02em;
    font-size: 14px;
}

.admin-auth-input:focus {
    border-color: #2a5caa;
    box-shadow: 0 0 0 3px rgba(42, 92, 170, 0.1), 0 2px 8px rgba(26, 39, 68, 0.05);
}

.admin-auth-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 24px;
    user-select: none;
    font-size: 13px;
    color: var(--color-text-1);
}

.admin-auth-check-label span {   
    color:steelblue;
}

.admin-auth-check-label input[type="checkbox"] {
    display: none;
}

.admin-auth-check-box {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid rgba(26, 39, 68, 0.18);
    border-radius: 4px;
    background: #ffffff;
    display: grid;
    place-items: center;
    transition: background 0.2s, border-color 0.2s;
    box-shadow: 0 2px 6px rgba(26, 39, 68, 0.06);
}

.admin-auth-check-box svg {
    width: 10px;
    height: 10px;
    opacity: 0;
    transition: opacity 0.15s;
}

.admin-auth-check-label input:checked ~ .admin-auth-check-box {
    background: #2a5caa;
    border-color: #2a5caa;
}

.admin-auth-check-label input:checked ~ .admin-auth-check-box svg {
    opacity: 1;
}

.admin-auth-btn {
    width: 100%;
    padding: 13px;
    background: #1a2744;
    border: none;
    border-radius: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(26, 39, 68, 0.22);
    margin-bottom: 16px;
}

.admin-auth-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.admin-auth-btn:hover {
    background: #243059;
    box-shadow: 0 6px 20px rgba(26, 39, 68, 0.28);
}

.admin-auth-btn:hover::after {
    transform: translateX(100%);
}

.admin-auth-btn:active {
    transform: scale(0.985);
}

.admin-auth-card .login-link {
    font-size: 13px;
    color: #2a5caa;
    margin: 0 0 8px 0;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.admin-auth-card .login-link:hover {
    color: #3d75cc;
    text-decoration: underline;
    text-underline-offset: 3px;
}