/* style_login.css */
/* CSS DARI TAMPILAN FUTURISTIK (VERSI 1) */
:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3a0ca3;
    --secondary: #7209b7;
    --accent: #f72585;
    --success: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

.dark-mode {
    --primary: #5a6df0;
    --primary-light: #6c7df5;
    --primary-dark: #4a5ce8;
    --light: #121212;
    --dark: #f8f9fa;
    --gray: #adb5bd;
    --gray-light: #2d3748;
    --card-bg: rgba(30, 30, 40, 0.95);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    color: var(--dark);
    transition: var(--transition);
}

/* Background Animated Elements */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.6;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light), transparent);
    animation: float 20s infinite linear;
}

.circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: radial-gradient(circle, var(--accent), transparent);
}

.circle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.circle:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 30s;
    background: radial-gradient(circle, var(--success), transparent);
}

.circle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(-30px, 30px) rotate(180deg);
    }
    75% {
        transform: translate(10px, -20px) rotate(270deg);
    }
}

/* Main Container */
.container-login {
    width: 100%;
    max-width: 480px;
    z-index: 10;
}

/* Card Login */
.card-login {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    animation: cardAppear 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.card-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
    z-index: 1;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-container {
    position: relative;
    margin-bottom: 15px;
    display: inline-block;
}

.logo-icon {
    font-size: 3.5rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(67, 97, 238, 0.3));
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.login-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Alert (Disesuaikan untuk Tampilan V1) */
.alert-custom {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 25px;
    border: none;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    display: flex;
    align-items: center;
    animation: shake 0.5s ease-in-out;
    border-left: 4px solid #dc3545;
}

/* Menggunakan kelas alert-custom untuk menampilkan error */
.alert-error {
    /* Warna Merah/Error dari V1 */
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}
/* Tambahkan style untuk dark mode alert jika perlu */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Form & Input (Gaya V2 yang diadaptasi ke V1 untuk Bootstrap Input) */
.input-group {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-light);
    transition: var(--transition);
    background: var(--light);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.input-group-text {
    background: transparent; /* Hilangkan background addon */
    border: none;
    color: var(--gray);
    font-size: 1.1rem;
    padding: 16px 5px 16px 18px;
    transition: var(--transition);
}

.input-group:focus-within .input-group-text {
    color: var(--primary);
}

.form-control {
    border: none;
    height: auto;
    padding: 16px 20px 16px 5px;
    font-size: 1rem;
    background: transparent;
    color: var(--dark);
    outline: none;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 0 !important;
}

.form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.form-control::placeholder {
    color: var(--gray);
    font-weight: 400;
}

/* Button Styling (Menggunakan Gaya V1) */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 7px 20px rgba(67, 97, 238, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.4);
}

/* Footer */
.footer-text {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 0.85rem;
}

/* Responsive (dari V1) */
@media (max-width: 768px) {
    .card-login {
        padding: 30px 25px;
        margin: 0 10px;
    }
    .login-header h1 { font-size: 1.8rem; }
    .logo-icon { font-size: 3rem; }
}

@media (max-width: 480px) {
    .card-login { padding: 25px 20px; }
    .login-header h1 { font-size: 1.6rem; }
    .btn-login { padding: 14px; }
}