﻿html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden; /* page itself should not scroll */
}

/* NOTICE BAR */
.right-notice-bar {
    height: 50px;
    width: 100%;
    background: linear-gradient(90deg, #ff9f1c, #ffd166, #ff9f1c);
    color: #18204a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 12px rgba(255, 159, 28, 0.35);
}

    .right-notice-bar::before {
        content: none;
    }


/* Fade animation */
@keyframes noticeFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* FULL SCREEN CONTAINER */
.fullscreen-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden; /* layout fixed */
}

.right-login {
    flex: 4;
    display: flex;
    flex-direction: column;
    height: 100%; /* NOT 100vh */
    overflow: hidden;
}

/* LEFT IMAGE */

.left-image {
    flex: 4;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .left-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
/* IMAGE TEXT */
.image-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    text-shadow: 0 3px 8px rgba(0,0,0,0.7);
}

    .image-overlay h1 {
        font-size: 36px;
        margin-bottom: 5px;
    }

/* scrolling container */
.notice-text {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

    /* actual scrolling text */
    .notice-text span {
        display: inline-block;
        padding-left: 100%;
        animation: scrollText 40s linear infinite;
    }
        .notice-text span:hover {
            animation-play-state: paused;
        }

/* animation */
@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}
/* LOGIN CONTENT AREA */
.login-content {
    height: calc(100vh - 50px); /* KEY LINE */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}
    .login-content form {
        width: 100%;
        max-width: 480px;
    }
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 35px 40px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: cardFadeUp 0.8s ease;
}
.login-title {
    font-size: 26px;
    font-weight: 600;
    color: #18204a;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 25px;
}
.input-group-addon {
    background: transparent;
    border-right: none;
    color: #6c757d;
}

.form-control {
    height: 44px;
    border-radius: 10px;
    border-left: none;
    box-shadow: none;
}

    .form-control:focus {
        border-color: #ff9f1c;
        box-shadow: 0 0 0 0.15rem rgba(255, 159, 28, 0.25);
    }

.btn-primary {
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9f1c, #ffbf69);
    border: none;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 18px rgba(255, 159, 28, 0.35);
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(255, 159, 28, 0.45);
    }


/* Card animation */
@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}  

/* LOGIN FORM */
.login-form {
    width: 100%;
    max-width: 360px;
}

/* LINKS */
.forgot-link {
    margin-top: 15px;
}
.login-links {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}

    .login-links a {
        color: #0b5ed7;
        text-decoration: none;
        font-weight: 500;
    }

        .login-links a:hover {
            text-decoration: underline;
        }

    .login-links .divider {
        margin: 0 10px;
        color: #999;
    }
/* MOBILE */
@media (max-width: 768px) {

    html, body {
        height: 100%;
        overflow: hidden;
    }

    .fullscreen-wrapper {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }

    /* 🔽 Reduce image height */
    .left-image {
        height: 25vh;
        flex: none;
    }

    .right-login {
        height: 75vh;
        flex: none;
        overflow: hidden;
    }

    /* 🔽 Fit content instead of scrolling */
    .login-content {
        height: calc(75vh - 50px);
        padding: 10px;
        align-items: center;
    }

    /* 🔽 Shrink card */
    .login-card {
        padding: 20px 16px;
        max-width: 100%;
    }

    /* 🔽 Reduce text sizes */
    .login-title {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* 🔽 Reduce input & button height */
    .form-control {
        height: 40px;
    }

    .btn-primary {
        height: 42px;
    }

    /* 🔽 Compact links */
    .forgot-link {
        margin-top: 10px;
        font-size: 13px;
    }

    .login-links {
        margin-top: 12px;
        font-size: 13px;
    }
}
