* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2; 
    opacity: 0.5;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: -1; 
}

.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 80px 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    max-height: 90vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto 50px;
    display: block;
    text-align: center;
    flex-shrink: 1;
    object-fit: contain;
}

.form-group {
    margin-bottom: 40px;
    flex-shrink: 1;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: #FFAE1F;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 174, 31, 0.4);
    text-transform: uppercase;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-login:hover {
    background: #e6951a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 174, 31, 0.6);
}

.btn-login:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

.btn-login:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(0%) translateY(0%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.alert {
    border-radius: 8px;
    margin-bottom: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
}

/* Tablet styles */
@media (max-width: 768px) {
    .login-card {
        padding: 35px 35px;
        margin: 0 auto;
        max-width: 450px;
        max-height: 85vh;
        min-height: 350px;
    }

    .logo {
        max-width: 65%;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        padding: 12px;
        font-size: 14px;
    }

    .btn-login {
        padding: 12px;
        font-size: 14px;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .login-card {
        padding: 20px 15px;
        margin: 0 auto;
        max-width: 100%;
        max-height: 80vh;
        min-height: 300px;
    }

    .logo {
        max-width: 55%;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        padding: 10px;
        font-size: 13px;
    }

    .btn-login {
        padding: 10px;
        font-size: 13px;
    }
}

/* Small mobile styles */
@media (max-width: 360px) {
    .login-card {
        padding: 15px 10px;
        margin: 0 auto;
        max-height: 75vh;
        min-height: 250px;
    }

    .logo {
        max-width: 45%;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-control {
        padding: 8px;
        font-size: 12px;
    }

    .btn-login {
        padding: 8px;
        font-size: 12px;
    }
}

/* Landscape mobile styles */
@media (max-height: 500px) and (orientation: landscape) {
    .login-card {
        padding: 10px 15px;
        margin: 0 auto;
        max-height: 70vh;
        min-height: 200px;
    }

    .logo {
        max-width: 35%;
        margin-bottom: 10px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-control {
        padding: 6px;
        font-size: 11px;
    }

    .btn-login {
        padding: 6px;
        font-size: 11px;
    }
}