/* ================================================
   MODERN REGISTRATION PAGE STYLES
   ================================================ */

/* Modern Gradient Background */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4299e1 100%) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card Styling */
.login-card {
    border-radius: 1.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
}

.login-card .card-body {
    padding: 0 !important;
}

/* Left Side - Image Container */
.bg-login-image {
    background: linear-gradient(135deg, #dbeafe 0%, #e9d5ff 100%) !important;
    padding: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    min-height: 600px !important;
}

/* Hero Frame */
.hero-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Back Button on Image */
.hero-back {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background: #667eea !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5 rem !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.hero-back:hover {
    background: #5568d3 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

.hero-back i {
    font-size: 0.85rem;
}

/* Login Hero Image */
.login-hero-img {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    background: white !important;
    object-fit: cover !important;
    display: block !important;
    margin : auto ;
}

/* Right Side - Form Container */
.col-lg-6 {
    padding: 3rem 2.5rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Login Header */
.login-header {
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
}

.login-header h2 {
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    margin-bottom: 1.5rem !important;
}

/* Alert Styling */
.login-alert {
    border-radius: 0.75rem !important;
    border: 1px solid #fecaca !important;
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

/* Form Wrapper */
.login-form-wrapper {
    width: 100%;
}

/* Form Inputs */
.form-control-user {
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50px !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    height: auto !important;
}

.form-control-user:focus {
    background-color: #ffffff !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

.form-control-user::placeholder {
    color: #9ca3af !important;
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem !important;
}

/* Submit Button */
.btn-user {
    border-radius: 50px !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-top: 0.5rem !important;
    height: auto !important;
}

.btn-primary.btn-user {
    background-color: #667eea !important;
    border-color: #667eea !important;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4) !important;
}

.btn-primary.btn-user:hover,
.btn-primary.btn-user:focus,
.btn-primary.btn-user:active {
    background-color: #5568d3 !important;
    border-color: #5568d3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

/* Divider */
.login-divider {
    height: 1px !important;
    background: #e5e7eb !important;
    margin: 1.5rem 0 !important;
    width: 100%;
}

/* Footer Text */
.login-footer-text {
    text-align: center !important;
    color: #6b7280 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

.login-footer-text a {
    color: #667eea !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.login-footer-text a:hover {
    color: #5568d3 !important;
    text-decoration: none !important;
}

/* Password Error Message */
.password-error-message {
    color: #dc2626 !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
    padding-left: 1.5rem !important;
}

/* Remove default Bootstrap card padding override */
.card .card-body.p-0 {
    padding: 0 !important;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .bg-login-image {
        display: none !important;
    }
    
    .col-lg-6 {
        padding: 2rem 1.5rem !important;
    }
    
    .login-header h1 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 576px) {
    .bg-gradient-primary {
        padding: 1rem !important;
    }
    
    .login-card {
        border-radius: 1rem !important;
    }
    
    .col-lg-6 {
        padding: 1.5rem 1rem !important;
    }
    
    .form-control-user {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .btn-user {
        padding: 0.875rem 1.5rem !important;
    }

        /* ===== MOBILE VIEW ===== */
        @media (max-width: 768px) {
    
            body.bg-gradient-primary {
                padding: 1rem !important;
            }
    
            .login-card {
                border-radius: 1rem !important;
            }
    
            /* Sembunyikan hero image desktop */
            .bg-login-image {
                display: none !important;
            }
            
            /* Header mobile */
            .login-header h1 {
                font-size: 1.5rem;
                text-align: center;
            }
    
            .login-header h2 {
                font-size: 0.9rem;
                text-align: center;
            }
    
            /* Form lebih lega di mobile */
            .form-control-user {
                font-size: 0.9rem;
                padding: 0.9rem 1.2rem !important;
            }
    
            .btn-user {
                font-size: 0.95rem;
            }
    
            .login-footer-text {
                text-align: center;
                font-size: 0.85rem;
            }
        }
}