/* Login Page with Glassmorphism Effect */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body main {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background-image: url('../img/bg-ui.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Overlay untuk sedikit gelap background */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

/* Glassmorphism Form Container */
.login-form-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 40px 35px;
}

/* Scrollbar styling for register form */
.login-form-container::-webkit-scrollbar {
    width: 6px;
}

.login-form-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.login-form-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.login-form-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Title */
.login-form-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Subtitle */
.login-form-container .subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 35px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Form Group */
.login-form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form-group label {
    display: none; /* Hide label, using placeholder instead */
}

.login-form-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.login-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Input Icons */
.login-form-group .input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    pointer-events: none;
}

.login-form-group .input-icon.password-toggle {
    pointer-events: all;
    cursor: pointer;
    transition: color 0.3s ease;
}

.login-form-group .input-icon.password-toggle:hover {
    color: rgba(255, 255, 255, 1);
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 10px;
}

.remember-me input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked {
    background: #4CAF50;
    border-color: #4CAF50;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.remember-me label {
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin-bottom: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 171, 47, 0.5);
}

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

/* Signup Link */
.signup-link {
    text-align: center;
    margin-bottom: 15px;
}

.signup-link p {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.signup-link a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.signup-link a:hover {
    opacity: 0.8;
}

/* Creator Credit */
.creator-credit {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.creator-credit p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.creator-credit span {
    color: #4dd0e1;
    font-weight: 600;
}

/* Error Message */
.login-error {
    background: rgba(244, 67, 54, 0.9);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 67, 54, 0.5);
}

/* Success Message */
.login-success {
    background: rgba(76, 175, 80, 0.9);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.5);
}


/* Responsive */
@media (max-width: 576px) {
    .login-form-container {
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .login-form-container h1 {
        font-size: 2rem;
    }
    
    .login-form-group input {
        padding: 12px 45px 12px 18px;
    }
}

/* Loading state */
.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

