/* Custom Styles for SiDesa Login Page */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.auth-form-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

/* Form Styling */
.auth-form .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.auth-form .input-group-text {
    border-radius: 8px 0 0 8px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.auth-form .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background-color: #e9ecef;
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Right Side Styling */
.auth-illustration {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Password Toggle */
.password-toggle {
    border: none;
    background: transparent;
    z-index: 5;
}

.password-toggle:focus {
    outline: none;
    box-shadow: none;
}

/* Form Options */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Links */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark) !important;
}

/* Toast Notification */
.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .container-fluid {
        background: linear-gradient(135deg, var(--primary-color) 0%, #4dabf7 100%);
    }
    
    .auth-form-container {
        background: white;
        border-radius: 16px;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 575.98px) {
    .auth-form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .auth-logo img {
        height: 40px;
    }
    
    .auth-logo span {
        font-size: 1.5rem !important;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loader {
    animation: spin 1s linear infinite;
}

/* Error States */
.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Success States */
.is-valid {
    border-color: #198754 !important;
}

.is-valid:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}