/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #081E35;
    min-height: 100vh;
    color: #ffffff;
}

/* Top bar with logo */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 87px;
    background: #000000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar__inner {
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    display: flex;
    justify-content: center;
}

.brand {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__logo {
    height: 50px;
    width: auto;
}

.brand__bva {
    background: linear-gradient(135deg, #00bcd4 0%, #2196f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.brand__bva::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #00bcd4 0%, #2196f3 100%);
    border-radius: 2px;
}

.brand__vis {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 4px;
    opacity: 0.8;
    margin-left: -4px;
}

/* Main stage */
.stage {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    background-image: url('../images/bg.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 87px;
    padding-bottom: 40px;
}

/* Geometric background pattern - removed */

/* Login section */
.login {
    z-index: 10;
    position: relative;
    margin-top: 58px;
}

.login__card {
    display: flex;
    width: 500px;
    padding: 35px 40px 20px 40px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: rgba(18, 37, 67, 0.40);
    box-shadow: 0 1px 144px 0 #01A4E8;
    text-align: center;
    flex-direction: column;
}

.login__title {
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.login__subtitle {
    font-size: 15px;
    opacity: 0.8;
    font-weight: 400;
}

/* Form styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.input {
    display: block;
}

.input input {
    width: 100%;
    height: 50px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    color: #333333;
    transition: all 0.3s ease;
}

.input input::placeholder {
    color: #999999;
}

.input input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(1, 164, 232, 0.3);
}

/* Form row with checkbox and forgot link */
.form__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
}

.remember input[type="checkbox"] {
    width: 20px;
    height: 20px;
    background: #6750A4;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    appearance: none;
}

.remember input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 4px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Links */
.link {
    color: #81CDED;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link:hover {
    color: #a8e6ff;
}

.link--muted {
    font-size: 15px;
}

/* Login button */
.btn {
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn--login,
.btn--register {
    width: 420px;
    height: 59px;
    color: #ffffff;
    margin: 12px 0;
    box-shadow: 0 0 64px rgba(165, 216, 255, 0.1);
    border-radius: 10.76px;
    position: relative;
    overflow: hidden;
}

.btn--login {
    background: #01A4E8;
}
.btn--register {
    background: linear-gradient(to right, #01A4E8, #02E86E);
}

.btn--login::before,
.btn--login::after,
.btn--register::before,
.btn--register::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.29);
    pointer-events: none;
}

.btn--login::before,
.btn--register::before {
    width: 23px;
    height: 100%;
    left: 63px;
    top: 0;
    transform: skewX(-46deg);
}

.btn--login::after,
.btn--register::after {
    width: 36px;
    height: 100%;
    left: 111px;
    top: 0;
    transform: skewX(-46deg);
}

.btn--login:hover,
.btn--register:hover {
    transform: translateY(-2px);
}

.btn--login:hover {
    box-shadow: 0 8px 25px rgba(1, 164, 232, 0.4);
}

.btn--register:hover {
    box-shadow: 0 8px 25px rgb(2, 232, 110, 0.4);
}

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

/* Note at bottom */
.note {
    font-size: 15px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    position: relative;
    width: 100%;
    padding: 30px 20px;
    background: transparent;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer__select {
    width: 100%;
    max-width: 500px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4 6L8 10L12 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    transition: all 0.3s ease;
}

.footer__select:hover {
    background-color: #1a1a1a;
}

.footer__select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(1, 164, 232, 0.3);
}

.footer__content {
    width: 100%;
    max-width: 1000px;
    background: #000000;
    border-radius: 16px;
    padding: 40px;
}

.footer__title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: left;
}

.footer__text {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

.footer__text::-webkit-scrollbar {
    width: 8px;
}

.footer__text::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.footer__text::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.footer__text::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.footer__text p {
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer__text h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.footer__text h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .topbar {
        padding: 0 20px;
    }
    
    .brand {
        font-size: 24px;
    }
    
    .brand__vis {
        font-size: 12px;
    }
    
    .stage {
        padding: 87px 20px 140px;
        min-height: calc(100vh - 187px);
    }

    .login {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .login__card {
        width: 90%;
        max-width: 380px;
        padding: 30px 20px 15px 20px;
    }
    
    .login__title {
        font-size: 20px;
    }
    
    .form__row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .btn--login,
    .btn--register {
        width: 100%;
        max-width: 340px;
    }

    .footer__select {
        font-size: 13px;
        padding: 10px 40px 10px 20px;
        background-position: right 12px center;
    }

    .footer__content {
        padding: 30px 20px;
    }

    .footer__title {
        font-size: 20px;
    }

    .footer__text {
        font-size: 13px;
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .login {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 15px;
    }

    .login__card {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px 15px 20px;
    }
    
    .input input {
        height: 46px;
        font-size: 15px;
    }
    
    .btn--login,
    .btn--register {
        width: 100%;
        height: 50px;
        font-size: 16px;
        max-width: none;
    }
    
    .stage {
        padding: 87px 0 140px;
        min-height: auto;
    }

    .footer {
        padding: 20px 15px;
    }

    .footer__select {
        font-size: 12px;
        padding: 10px 36px 10px 16px;
        background-position: right 10px center;
    }

    .footer__content {
        padding: 25px 15px;
    }

    .footer__title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .footer__text {
        font-size: 12px;
        max-height: 350px;
    }

    .footer__text h3 {
        font-size: 16px;
        margin-top: 20px;
    }

    .footer__text h4 {
        font-size: 14px;
        margin-top: 12px;
    }
}

/* Landscape orientation on mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .login {
        margin-top: 20px;
    }

    .login__card {
        padding: 20px 20px 15px 20px;
    }

    .btn--login,
    .btn--register {
        width: 100%;
        max-width: none;
    }

    .stage {
        padding: 87px 15px 20px;
    }
}