html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: rgb(208,208,208);
    background: radial-gradient(circle, rgba(208,208,208,1) 0%, rgba(34,34,34,1) 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    color: #ecf0f1;
    min-height: 100vh;
}

.login-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.login-container {
    background-color: rgba(48, 48, 48, 0.8);
    border-radius: 15px;
    padding: 60px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.login-container:hover {
    transform: scale(1.02);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ecf0f1;
    font-size: 24px;
}

.form-label {
    color: #ecf0f1;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ecf0f1;
    height: 38px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #bb7000;
    box-shadow: 0 0 0 0.25rem rgba(187, 112, 0, 0.25);
    color: #ecf0f1;
}

/* Password field styling */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ecf0f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 5; /* Memastikan selalu di atas */
}

.toggle-password:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.toggle-password i {
    font-size: 14px;
}

/* Menghilangkan semua eye-icon lama */
.eye-icon, 
i.eye-icon, 
#togglePassword:not(.toggle-password),
i#togglePassword {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Login button styling */
.login-btn {
    background-color: #bb7000;
    border: none;
    color: white;
    padding: 8px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-btn:hover {
    background-color: #d98100;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

.company-name {
    text-align: center;
    color: #ecf0f1;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-top: 20px;
    font-weight: 500;
}

/* Media query for mobile devices */
@media (max-width: 576px) {
    .login-container {
        width: 90%;
        max-width: 300px;
        height: auto;
        padding: 20px;
    }

    .form-control {
        height: 36px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* Media query for very small screens */
@media (max-height: 500px) {
    .login-container {
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .company-name {
        margin-top: 10px;
        font-size: 0.7rem;
    }
}