/* GLOBAL STYLES */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #e6e6e6;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* INTRO VIDEO */
#video-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Enhanced brightness and contrast for HD effect */
    filter: brightness(1.3) contrast(1.1) saturate(1.1);
}

#skip {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 21;
}

#skip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* LOGIN PAGE */
.hidden {
    display: none !important;
}

#login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    /* Make login page transparent */
    background: transparent;
    position: relative;
    z-index: 22;
}

.logo-img {
    width: 280px;
    height: auto;
    margin-bottom: 10px; /* Further reduced from 20px */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

/* FORM STYLES */
#login-form {
    /* Make form transparent */
    background: transparent;
    backdrop-filter: blur(0px);
    border-radius: 16px;
    padding: 15px; /* Further reduced from 20px */
    width: 100%;
    max-width: 400px;
    box-shadow: none;
    border: none;
}

.input-group {
    margin-bottom: 12px; /* Further reduced from 15px */
    text-align: left;
}

.label {
    color: #f5d98b;
    font-size: 18px; /* Increased from 16px */
    margin-bottom: 6px; /* Reduced from 8px */
    display: block;
    font-weight: 600; /* Increased from 500 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.input-box {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Transparent background */
    background: rgba(0, 0, 0, 0.3);
    font-size: 16px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.input-box:focus {
    border-color: #e7c45e;
    box-shadow: 0 0 0 3px rgba(231, 196, 94, 0.2);
}

.input-box::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.pass-wrapper {
    position: relative;
    display: block;
}

.eye {
    position: absolute;
    right: 15px;
    top: 14px;
    cursor: pointer;
    user-select: none;
    /* Darker but more visible eye icon */
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    /* Remove emoji and use proper eye icon */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom eye icon container */
.eye-icon-container {
    position: relative;
    width: 20px;
    height: 20px;
}

/* Regular eye shape */
.eye-icon {
    position: absolute;
    width: 20px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 4px;
    left: 0;
}

.eye-icon::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    top: 2px;
    left: 6px;
}

/* Cross line through the eye */
.cross-line {
    position: absolute;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    top: 10px;
    left: -2px;
    transform: rotate(45deg);
    display: none;
}

/* Show cross line when password is hidden */
.eye.password-hidden .cross-line {
    display: block;
}

/* SUBMIT BUTTON */
.submit-btn {
    padding: 14px 60px;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #e7c45e 0%, #c79a30 100%);
    color: #08203a;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(199, 154, 48, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #fadf8f 0%, #d6aa4c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 154, 48, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* MESSAGE STYLES */
.message {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.error {
    background: rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #ff7b7b;
}

/* RESPONSIVE DESIGN */
@media (max-width: 480px) {
    #login-form {
        padding: 12px; /* Further reduced from 15px */
        margin: 0 15px;
    }
    
    .logo-img {
        width: 220px;
        margin-bottom: 8px; /* Further reduced on mobile */
    }
    
    .input-box {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .label {
        font-size: 16px; /* Slightly smaller on mobile */
        margin-bottom: 5px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px;
    }
}