html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.login-bg-layer1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/login-bg.png') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.login-bg-layer2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/login-bg2.png') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
    z-index: 2;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.7) 0%, rgba(0, 119, 190, 0.7) 100%);
    z-index: 3;
}

.login-box {
    width: 400px;
    margin: 100px 80px 0 auto; /* Increased top margin from 40px to 100px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 4;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
}

.brand {
    margin-bottom: 30px;
    margin-top: 0;
    padding-top: 0;
    text-align: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.brand-logo-img {
    width: 72px;
    height: 72px;
}

.brand-name {
    font-size: 32px;
    color: #ffffff;
    line-height: 1;
    display: block;
}

.brand-name span:first-child {
    color: #00ffff;
}

.brand-text {
    color: #ffffff;
    font-size: 14px;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
    color: #ffffff;
    opacity: 0.7;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.remember-me input[type='checkbox'] {
    margin-right: 8px;
}

.remember-me label {
    color: #ffffff;
    font-weight: normal;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #00ffff;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.btn-login:hover {
    background: #00e5e5;
}

.forgot-password {
    display: block;
    text-align: center;
    color: #ffffff;
    margin-top: 15px;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-box {
        margin-right: 0;
        width: 90%;
    }
}

.alert-error {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #ffe8ea;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-control.is-invalid {
    border-color: rgba(255, 59, 48, 0.6);
}

.form-error {
    display: block;
    color: #ffe8ea;
    font-size: 12px;
    margin-top: 6px;
}

.register-link {
    margin-top: 18px;
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
}

.register-link a {
    color: #00ffff;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}
