/*
 * File: login.css
 * Created on Sun Mar 01 2026
 * Last Updated: Sun Mar 01 2026 6:19:30 PM
 * Author: Erwan Setyo Budi
 * Email: erwans818@gmail.com
 */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Vegas Background - Fullscreen di belakang */
.vegas-slide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

/* Left Panel - Login Form */
.login-form-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 40%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

[data-bs-theme="dark"] .login-form-panel {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
}

.library-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.library-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.library-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #333;
}

[data-bs-theme="dark"] .library-info h2 {
    color: #fff;
}

.library-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

[data-bs-theme="dark"] .library-info p {
    color: #aaa;
}

.login-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #333;
}

[data-bs-theme="dark"] .login-title {
    color: #fff;
}

.login-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

[data-bs-theme="dark"] .login-subtitle {
    color: #aaa;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-bs-theme="dark"] .form-label {
    color: #ddd;
}

.form-label i {
    color: #667eea;
    font-size: 1rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    width: 100%;
}

[data-bs-theme="dark"] .form-control {
    background: #2d2d2d;
    border-color: #404040;
    color: #fff;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.form-text {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

[data-bs-theme="dark"] .form-text {
    color: #777;
}

/* Input Group Styling untuk Password Toggle */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group .input-group-text {
    background: #fff;
    border: 2px solid #e9ecef;
    border-left: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 0.75rem 1rem;
    color: #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.input-group .input-group-text:hover {
    background: #f8f9fa;
    color: #764ba2;
}

[data-bs-theme="dark"] .input-group .input-group-text {
    background: #2d2d2d;
    border-color: #404040;
    color: #9ca3af;
}

[data-bs-theme="dark"] .input-group .input-group-text:hover {
    background: #363636;
    color: #fff;
}

.input-group .form-control:focus + .input-group-text {
    border-color: #667eea;
}

/* Alert Messages */
.alert-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 1rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.alert-message i {
    font-size: 1.2rem;
}

/* Remember Me & Forgot Password */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    border-radius: 4px;
    cursor: pointer;
}

.remember label {
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
}

[data-bs-theme="dark"] .remember label {
    color: #aaa;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Buttons */
.login-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-button i {
    font-size: 1.2rem;
}

.home-button {
    background: transparent;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.9rem;
    font-weight: 600;
    font-size: 1rem;
    color: #666;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.home-button:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .home-button {
    border-color: #404040;
    color: #aaa;
}

[data-bs-theme="dark"] .home-button:hover {
    border-color: #667eea;
    color: #667eea;
}

.home-button i {
    font-size: 1.2rem;
}

/* Right Panel - Info & Quote */
.login-info-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    z-index: 10;
}

.info-card {
    max-width: 550px;
    text-align: center;
    animation: slideUp 0.5s ease;
}

.info-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.info-icon i {
    font-size: 4rem;
    color: white;
}

.quote-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.quote-loading {
    color: white;
    text-align: center;
}

.quote-content {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.5;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 21;
}

.quote-content::before {
    content: "“";
    font-size: 3rem;
    opacity: 0.5;
    margin-right: 0.5rem;
    font-family: serif;
}

.quote-author {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    font-style: italic;
    position: relative;
    z-index: 21;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.powered-by {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    z-index: 20;
}

.powered-by code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #fff;
}

/* Captcha Styling */
.captchaAdmin {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

[data-bs-theme="dark"] .captchaAdmin {
    background: rgba(45,45,45,0.9);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-form-panel {
        max-width: 100%;
        height: auto;
        padding: 2rem;
    }
    
    .login-info-panel {
        display: none;
    }
    
    .library-badge {
        margin-bottom: 1.5rem;
    }
    
    .library-icon {
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }
    
    .library-info h2 {
        font-size: 1.4rem;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
}