/* login_member.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(66, 165, 245, 0.15) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    border-radius: 50%;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(25, 118, 210, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    border-radius: 50%;
}

.login-container {
    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 20px 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(66, 165, 245, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo-section img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 2px solid rgba(66, 165, 245, 0.3);
    object-fit: cover;
}

.logo-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.logo-section .text-primary {
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fca5a5;
    font-size: 0.9rem;
    margin-bottom: 25px;
    animation: shake 0.5s ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(66, 165, 245, 0.6);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(25, 118, 210, 0.05);
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 12px;
    color: #ffffff; /* Warna teks putih */
    font-size: 1rem;
    transition: all 0.3s ease;
    padding-right: 50px !important;
}

/* Warna teks untuk placeholder */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Placeholder abu-abu terang */
}

/* Warna teks saat mengetik */
.form-control:focus {
    outline: none;
    border-color: #42a5f5;
    background: rgba(25, 118, 210, 0.08);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
    color: #ffffff; /* Pastikan teks tetap putih saat focus */
}

/* Warna teks saat input terisi */
.form-control:not(:placeholder-shown) {
    color: #ffffff; /* Teks putih saat ada input */
}

/* Warna untuk autofill di browser */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important; /* Teks putih untuk autofill */
    -webkit-box-shadow: 0 0 0px 1000px rgba(25, 118, 210, 0.05) inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff; /* Warna kursor putih */
}

/* Warna kursor (caret) */
.form-control {
    caret-color: #42a5f5; /* Warna kursor biru */
}

/* Password Toggle Styles */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    z-index: 2;
    background: rgba(13, 27, 42, 0.8);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #42a5f5;
    background: rgba(66, 165, 245, 0.1);
}

.password-toggle.active {
    color: #42a5f5;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(66, 165, 245, 0.2);
}

.divider span {
    background: rgba(13, 27, 42, 0.9);
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.links {
    text-align: center;
    margin-top: 25px;
}

.links a {
    color: #42a5f5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.links a:hover {
    color: #64b5f6;
    text-decoration: underline;
}

.links p {
    color: rgba(255, 255, 255, 0.6);
    margin: 12px 0;
    font-size: 0.95rem;
}

.text-warning {
    color: #fbbf24 !important;
}

.text-warning:hover {
    color: #fcd34d !important;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    color: #42a5f5;
    transform: translateX(-5px);
}

@media (max-width: 576px) {
    .login-container {
        padding: 40px 25px;
    }

    .logo-section h1 {
        font-size: 1.6rem;
    }
    
    .form-control {
        padding: 12px 14px 12px 44px;
        padding-right: 45px !important;
        color: #ffffff; /* Pastikan teks putih di mobile */
    }
    
    .input-icon {
        left: 14px;
        font-size: 1rem;
    }
    
    .password-toggle {
        right: 14px;
        width: 28px;
        height: 28px;
    }
    
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.5); /* Placeholder konsisten di mobile */
    }
}