/* Reset CSS dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Variabel CSS untuk warna */
:root {
    --primary-purple: #A594F9;
    --light-purple: #EDE9FE;
    --dark-purple: #6D28D9;
    --pastel-purple: #DDD6FE;
    --error-red: #DC3545;
    --success-green: #28A745;
}

/* Styling untuk body */
body {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

/* Login container */
.login-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

/* Logo styling */
.logo {
    width: 120px;
    height: 120px;
    background: var(--light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    padding: 1rem;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Title styling */
.title {
    font-size: 1.8rem;
    color: var(--dark-purple);
    text-align: center;
    margin-bottom: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Alert styling */
.alert {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
}

/* Alert danger (error) */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Alert success */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Form styling */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Group form input */
.form-group {
    width: 100%;
    position: relative;
    margin-bottom: 1.25rem;
}

/* Form label styling */
.form-label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

/* Input control styling */
.form-control {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 2px solid var(--pastel-purple);
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fdfdfd;
}

/* Focus state untuk input */
.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(165, 148, 249, 0.2);
}

/* State ketika input invalid */
.form-control.is-invalid {
    border-color: var(--error-red);
}

/* Pesan error styling */
.text-danger {
    color: var(--error-red);
    font-size: 0.8rem;
    text-align: left;
    margin-top: 0.25rem;
    display: block;
}

/* Container untuk tombol */
.btn-container {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

/* Styling tombol login */
.btn-login {
    padding: 0.7rem 2.5rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-purple);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

/* Hover state untuk tombol */
.btn-login:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
}

/* Active state untuk tombol */
.btn-login:active {
    transform: translateY(0);
}

/* Disabled state untuk tombol */
.btn-login:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive design untuk tablet */
@media (max-width: 768px) {
    .login-container {
        padding: 2rem;
    }
    
    .title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
}

/* Responsive design untuk mobile */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    
    .login-container {
        padding: 1.75rem;
        border-radius: 12px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .btn-login {
        max-width: 100%;
    }
}
