
/* =========================================
   TIE DeKUT LOGIN REDESIGN
   Forest Green Theme + Smooth Slideshow
========================================= */

.login-page,
.login-page * {
    box-sizing: border-box;
}

.login-page {
    --green-dark: #123b2c;
    --green-main: #176b45;
    --green-light: #249b65;
    --text-dark: #183329;
    --text-muted: #718078;

    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    background: #123b2c;
}

/* Background slideshow layers */
.login-page::before,
.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    will-change: opacity;
}

/* First layer: images 1, 3 and 5 */
.login-page::before {
    background-image:
        linear-gradient(rgba(10, 45, 30, 0.58), rgba(10, 45, 30, 0.58)),
        url("../assets/images/Cell-phone.webp");

    animation:
        firstImageChange 30s steps(1, end) infinite,
        firstLayerFade 30s linear infinite;
}

/* Second layer: images 2 and 4 */
.login-page::after {
    background-image:
        linear-gradient(rgba(10, 45, 30, 0.58), rgba(10, 45, 30, 0.58)),
        url("../assets/images/engineer%202.jpg");

    animation:
        secondImageChange 30s steps(1, end) infinite,
        secondLayerFade 30s linear infinite;
}

/* Change images only while their layer is transparent */
@keyframes firstImageChange {
    0%, 39.99% {
        background-image:
            linear-gradient(rgba(10, 45, 30, 0.58), rgba(10, 45, 30, 0.58)),
            url("../assets/images/Cell-phone.webp");
    }

    40%, 79.99% {
        background-image:
            linear-gradient(rgba(10, 45, 30, 0.58), rgba(10, 45, 30, 0.58)),
            url("../assets/images/engineer.jpg");
    }

    80%, 100% {
        background-image:
            linear-gradient(rgba(10, 45, 30, 0.58), rgba(10, 45, 30, 0.58)),
            url("../assets/images/telecoms-masts-2000759.webp");
    }
}

@keyframes secondImageChange {
    0%, 19.99% {
        background-image:
            linear-gradient(rgba(10, 45, 30, 0.58), rgba(10, 45, 30, 0.58)),
            url("../assets/images/engineer%202.jpg");
    }

    20%, 59.99% {
        background-image:
            linear-gradient(rgba(10, 45, 30, 0.58), rgba(10, 45, 30, 0.58)),
            url("../assets/images/satelite.jpg");
    }

    60%, 100% {
        background-image:
            linear-gradient(rgba(10, 45, 30, 0.58), rgba(10, 45, 30, 0.58)),
            url("../assets/images/engineer%202.jpg");
    }
}

/* Alternating opacity creates the crossfade */
@keyframes firstLayerFade {
    0%, 16% { opacity: 1; }
    20%, 36% { opacity: 0; }
    40%, 56% { opacity: 1; }
    60%, 76% { opacity: 0; }
    80%, 96% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes secondLayerFade {
    0%, 16% { opacity: 0; }
    20%, 36% { opacity: 1; }
    40%, 56% { opacity: 0; }
    60%, 76% { opacity: 1; }
    80%, 96% { opacity: 0; }
    100% { opacity: 0; }
}

/* =========================================
   PAGE LAYOUT
========================================= */

.login-page .page-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    padding: 45px 20px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-page .box {
    width: 100%;
    max-width: 440px;
    position: relative;
    padding: 3px;
    border-radius: 25px;
    background: linear-gradient(
        135deg,
        #176b45,
        #55b987,
        #123b2c
    );
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

.login-page .border-line {
    display: none;
}

.login-page form {
    position: relative;
    width: 100%;
    padding: 42px 38px 32px;
    border-radius: 22px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* =========================================
   BRAND
========================================= */

.login-page .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 35px;
    color: var(--green-dark);
    text-decoration: none;
    font-size: 21px;
    font-weight: 600;
}

.login-page .brand strong {
    color: var(--green-main);
}

.login-page .brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #176b45, #249b65);
    font-size: 23px;
    font-weight: 800;
}

/* =========================================
   HEADINGS
========================================= */

.login-page h1 {
    margin: 0;
    text-align: center;
    color: var(--green-dark);
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -0.6px;
}

.login-page .subtitle {
    margin: 10px 0 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* =========================================
   INPUT FIELDS
========================================= */

.login-page .input-box {
    position: relative;
    width: 100%;
    margin-bottom: 23px;
}

.login-page .input-box input {
    width: 100%;
    height: 57px;
    padding: 17px 16px;
    border: 1.5px solid #dce7df;
    border-radius: 12px;
    outline: none;
    background: #fbfdfb;
    color: var(--text-dark);
    font-size: 15px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.login-page .input-box input:focus {
    border-color: var(--green-main);
    box-shadow: 0 0 0 4px rgba(36, 155, 101, 0.10);
    background: #ffffff;
}

.login-page .input-box label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 4px;
    color: #84928a;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease;
}

.login-page .input-box input:focus ~ label,
.login-page .input-box input:not(:placeholder-shown) ~ label {
    top: 0;
    left: 12px;
    font-size: 11px;
    color: var(--green-main);
    background: #ffffff;
}

.login-page .input-box i {
    display: none;
}

/* =========================================
   PASSWORD BUTTON
========================================= */

.login-page .password-box input {
    padding-right: 72px;
}

.login-page .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--green-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
}

.login-page .toggle-password:hover {
    color: var(--green-dark);
}

/* =========================================
   LINKS
========================================= */

.login-page .imp-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 1px 0 25px;
}

.login-page a {
    color: var(--green-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.login-page a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

/* =========================================
   SIGN IN BUTTON
========================================= */

.login-page .btn {
    width: 100%;
    min-height: 53px;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #176b45, #249b65);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(23, 107, 69, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 23px rgba(23, 107, 69, 0.25);
}

.login-page .btn:active {
    transform: translateY(0);
}

/* =========================================
   STATUS AND FOOTER
========================================= */

.login-page .status-message {
    min-height: 20px;
    margin: 15px 0 0;
    text-align: center;
    color: var(--green-main);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.login-page .back-home {
    margin: 17px 0 0;
    text-align: center;
}

.login-page .back-home a {
    font-size: 13px;
}

.login-page .page-footer {
    margin: 24px 0 0;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.8;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* =========================================
   ACCESSIBILITY
========================================= */

.login-page button:focus-visible,
.login-page a:focus-visible,
.login-page input:focus-visible {
    outline: 3px solid rgba(36, 155, 101, 0.35);
    outline-offset: 3px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {
    .login-page .page-container {
        padding: 25px 15px 20px;
    }

    .login-page form {
        padding: 35px 23px 27px;
    }

    .login-page h1 {
        font-size: 26px;
    }

    .login-page .brand {
        margin-bottom: 29px;
    }

    .login-page .imp-links {
        font-size: 12px;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .login-page::before,
    .login-page::after {
        animation: none;
    }

    .login-page::before {
        opacity: 1;
        background-image:
            linear-gradient(rgba(10, 45, 30, 0.58), rgba(10, 45, 30, 0.58)),
            url("../assets/images/engineer.jpg");
    }

    .login-page::after {
        display: none;
    }

    .login-page *,
    .login-page *::before,
    .login-page *::after {
        transition: none !important;
    }
}

/* =========================================
   EMAIL VERIFICATION PAGE
   TIE DeKUT Forest Green Theme
========================================= */

.login-page .verification-content {
    width: 100%;
    padding: 38px;
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
}

.login-page .verification-content h1 {
    color: #123b2c;
    font-size: 28px;
    margin-bottom: 12px;
}

.login-page .verification-content .subtitle {
    color: #718078;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.login-page .verification-content .brand {
    color: #123b2c;
    margin-bottom: 30px;
}

.login-page .verification-content .brand strong {
    color: #176b45;
}

.login-page .verification-content .brand-icon {
    background: #176b45;
    color: #ffffff;
}

.login-page .verification-content .input-box {
    margin-top: 25px;
}

.login-page .verification-content .input-box input {
    width: 100%;
    height: 54px;
    padding: 15px;
    border: 1px solid #b7cfc1;
    border-radius: 9px;
    background: #ffffff;
    color: #183329;
    outline: none;
}

.login-page .verification-content .input-box input:focus {
    border-color: #176b45;
    box-shadow: 0 0 0 3px rgba(23, 107, 69, 0.12);
}

.login-page .verification-content .input-box label {
    color: #718078;
}

.login-page .verification-content .input-box input:focus ~ label,
.login-page .verification-content .input-box input:not(:placeholder-shown) ~ label {
    color: #176b45;
}

.login-page .verification-content .btn {
    width: 100%;
    min-height: 49px;
    border: none;
    border-radius: 9px;
    background: #176b45;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
}

.login-page .verification-content .btn:hover {
    background: #123b2c;
    transform: translateY(-2px);
}

.login-page .verification-content .status-message {
    color: #176b45;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.login-page .verification-content .imp-links a,
.login-page .verification-content .back-home a {
    color: #176b45;
    text-decoration: none;
}

.login-page .verification-content .imp-links a:hover,
.login-page .verification-content .back-home a:hover {
    color: #123b2c;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-page .verification-content {
        padding: 28px 20px;
    }

    .login-page .verification-content h1 {
        font-size: 24px;
    }
}
