@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    /* Animasi Latar Belakang Gradient Mesh */
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1a365d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 420px;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    border-top: 4px solid #c5a880;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: #1a365d;
    color: #c5a880;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

.login-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #1a365d;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 11px;
    color: #718096;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.divider {
    height: 2px;
    width: 50px;
    background: #c5a880;
    margin: 20px auto 0 auto;
}

.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    color: #2d3748;
    border: none;
    border-bottom: 1px solid #cbd5e0;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

/* Mengatur spasi agar teks sandi tidak menabrak ikon mata */
.input-group input[type="password"],
.input-group input[type="text"] {
    padding-right: 30px; 
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 14px;
    color: #a0aec0;
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus,
.input-group input:valid {
    border-bottom: 1px solid #1a365d;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -18px;
    font-size: 11px;
    color: #1a365d;
    font-weight: 600;
}

/* Posisi Ikon Mata */
.toggle-password {
    position: absolute;
    right: 0;
    top: 10px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: #1a365d;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #1a365d;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-login:hover {
    background: #c5a880;
    color: #1a365d;
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.4);
}

.alert {
    padding: 12px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-error {
    background: #fff5f5;
    color: #c53030;
    border-left: 3px solid #c53030;
}

.login-footer {
    text-align: center;
    margin-top: 35px;
}

.login-footer p {
    font-size: 10px;
    color: #a0aec0;
}