/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */
body {
     background: #ffffff;  /* Home page background */
    font-family: "IBM Plex Sans", sans-serif;  /* Home page font */
    color: #8A94A7;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ===== TOPBAR ===== */
.topbar {
    background: #242830;  /* Dark grey from home */
    padding: 16px 30px;
    border-bottom: 1px solid #242830; /* subtle border */
}

.topbar-inner {
    display: flex;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box img {
    height: 35px;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;  /* White text */
    letter-spacing: 0px;
}

.brand-name .blue {
    color: #0270D7;  /* Primary blue */
}

/* ===== WRAPPER ===== */
.wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

/* ===== FORM BOX ===== */
.form-box {
     background: #0006ff;  /* Home page background */
    padding: 32px;
    border-radius: 4px;  /* Sharp corners like home buttons */
    width: 100%;
    max-width: 450px;
    border: 1px solid #242830;  /* subtle border */
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    max-height: 85vh;
    overflow-y: auto;
}

.form-box::-webkit-scrollbar {
    width: 6px;
}

.form-box::-webkit-scrollbar-thumb {
    background: #3B404C;
    border-radius: 4px;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #fff;  /* White heading */
    font-weight: 600;
    font-size: 32px;
    line-height: 42px;
    letter-spacing: 0px;
}

/* ===== LEVEL BOX ===== */
.level-box {
    border: 1px solid #242830;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 2px;
}

.level-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;  /* White */
    font-size: 18px;
    line-height: 28px;
}

/* ===== INPUTS ===== */
input, select {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 12px;
    border: 1px solid #242830;
    border-radius: 2px;
    font-size: 16px;
    line-height: 20px;
    font-family: "IBM Plex Sans", sans-serif;
    background-color: #fff;
    color: #8A94A7;
    outline: none;
    transition: border-color 0.2s;
}

input::placeholder, select::placeholder {
    color: #3B404C;
}

input:focus, select:focus {
    border-color: #0270D7;
    box-shadow: 0 0 0 2px rgba(2, 112, 215, 0.2);
}

/* ===== PASSWORD BOX ===== */
.password-box {
    position: relative;
}

.password-box span {
    position: absolute;
    right: 16px;
    top: 14px;
    cursor: pointer;
    color: #8A94A7;
}

/* ===== BUTTON ===== */
.btn-submit {
    width: 100%;
    padding: 12px 40px;
    height: 48px;
    background: #0270D7;
    background: linear-gradient(65deg, #0270D7 0, #0F8AFD 100%);
    color: #fff !important;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
    font-family: "IBM Plex Sans", sans-serif;
}

.btn-submit:hover {
    background: #0982f4;
    background: linear-gradient(65deg, #0275e1 0, #198ffd 100%);
}

/* ===== LINKS ===== */
.login-text {
    text-align: center;
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
}

.login-text a {
    color: #0270D7;
    text-decoration: none;
    font-weight: 600;
}

.login-text a:hover {
    text-decoration: underline;
}

.form-box p {
    text-align: center;
    margin-top: 12px;
    font-size: 16px;
    line-height: 24px;
}

.form-box a {
    color: #0270D7;
    font-weight: 600;
    text-decoration: none;
}

.form-box a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-box {
        padding: 24px;
        border-radius: 4px;
    }

    .topbar {
        padding: 12px 16px;
    }

    .brand-name {
        font-size: 18px;
    }

    input, select {
        padding: 12px 14px;
        font-size: 15px;
    }

    .btn-submit {
        padding: 10px 24px;
        height: 44px;
        font-size: 15px;
    }

    .form-box h2 {
        font-size: 28px;
        line-height: 38px;
    }
}

@media (max-width: 480px) {
    .form-box {
        padding: 16px;
        max-width: 100%;
        margin: 0 10px;
    }

    .brand-name {
        font-size: 16px;
    }

    .logo-box img {
        height: 28px;
    }
}