/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Assuming Poppins font is linked or available */
    font-family: "Poppins", sans-serif; 
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden; /* prevent scroll bars from video overflow */
}

/* ====== BACKGROUND VIDEO ====== */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* ====== BACKGROUND CONTAINER ====== */
.container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
}

/* ====== NAVBAR ====== */
nav {
    position: absolute;
    top: 15px;
    right: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav li {
    font-weight: bold;
    cursor: pointer;
    color: #222;
    transition: 0.3s;
}

nav li:hover {
    color: #0066cc;
}

/* ====== LOGIN BOX (LANDSCAPE STYLE) ====== */
.login-box {
    /* Slightly opaque white background with blur effect */
    background-color: rgba(255, 255, 255, 0.88); 
    width: 700px;
    min-height: 200px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 40px 50px;
}

/* LEFT SIDE – Logo & Titles */
.login-box .left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.upsi-logo {
    width: 200px;
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 20px;
    color: #555;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
}

.login-box h2 {
    font-size: 18px;
    margin-top: 8px;
    color: #333;
}

/* RIGHT SIDE – Form */
.login-box .right-section {
    width: 45%;
}

.input-box input {
    width: 100%;
    padding: 10px;
    margin: 7px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.input-box input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* ====== PASSWORD FIELD WITH EYE ICON ====== */
.password-box {
    position: relative;
}

.password-box input {
    width: 100%;
    padding-right: 40px; /* space for eye icon */
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}

.toggle-password:hover {
    color: #007BFF;
}

/* ====== ROLE BUTTONS ====== */
.role-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.role-buttons button {
    padding: 6px 12px;
    border: none;
    background: #e6e6e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
}

.role-buttons button:hover {
    background: #007BFF;
    color: #fff;
}

/* Selected role style (referenced in the HTML's <style> block, but good to have here) */
.role-buttons button.selected {
    background-color: #007bff;
    color: white;
}

/* ====== ACTION BUTTONS ====== */
.sign-in,
.forgot,
.first {
    border: none;
    padding: 10px;
    width: 100%;
    margin-top: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.sign-in {
    background: #28a745; /* Green */
    color: white;
}
.sign-in:hover {
    background: #23963d;
}

.forgot {
    background: #dc3545; /* Red */
    color: white;
}
.forgot:hover {
    background: #b32434;
}

.first {
    background: #007bff; /* Blue */
    color: white;
}
.first:hover {
    background: #0066d1;
}

/* ====== TEXT LINKS & FOOTER ====== */
.help {
    margin-top: 12px;
    font-size: 13px;
    color: #333;
    text-align: center;
}

.help a {
    color: #007bff;
    text-decoration: none;
}

.help a:hover {
    text-decoration: underline;
}

.footer {
    font-size: 12px;
    color: #555;
    margin-top: 8px;
    text-align: center;
}

/* ====== LOGO POSITION (TOP-LEFT FIXED) ====== */
.upsell-logo {
    position: absolute;
    top: 20px;
    left: 25px;
    width: 140px;
    z-index: 10;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        width: 90%;
        min-height: auto;
        padding: 25px;
    }

    .login-box .left-section,
    .login-box .right-section {
        width: 100%;
    }
}

/* NOTE: The 'city-postcode-row' styles were related to a registration form, 
         but are kept here just in case you use them on a related page. */
.city-postcode-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.city-box select,
.postcode-box input {
    width: 100%;
    padding: 10px;
    margin: 7px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
    background-color: #fff;
    color: #333;
}

.city-box select:focus,
.postcode-box input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}