/* Custom Auth Pages Styling - Bootstrap 4 Compatible */

/* Enhanced background gradient */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Card styling */
.card {
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
}

.card-body {
    border-radius: 15px;
}

/* Form controls */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.form-control-lg {
    padding: 12px 16px;
    height: auto;
}

/* Labels */
label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

/* Icons in labels */
label i {
    color: #667eea;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Checkbox styling */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #667eea;
    border-color: #667eea;
}

.custom-control-input:focus ~ .custom-control-label::before {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Links */
.text-primary {
    color: #667eea !important;
}

.text-primary:hover {
    color: #5a6fd8 !important;
}

/* Alert styling */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

/* Solar panel icon animation */
.fa-solar-panel {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Text colors */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-gray-700 {
    color: #495057 !important;
}

.text-gray-800 {
    color: #343a40 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Font weights */
.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-semibold {
    font-weight: 600 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 2rem !important;
    }
    
    .col-xl-5 {
        padding: 0 15px;
    }
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Enhanced shadows */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Form group spacing */
.form-group {
    margin-bottom: 1.5rem;
}

/* Close button for alerts */
.close {
    color: white;
    opacity: 0.8;
}

.close:hover {
    opacity: 1;
}

/* Hover effects for interactive elements */
.form-control:hover {
    border-color: #adb5bd;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Focus states */
.form-control:focus,
.btn:focus,
.custom-control-input:focus {
    outline: none;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Bootstrap 4 utility classes */
.btn-block {
    display: block;
    width: 100%;
}

.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

/* Utility classes for text decoration */
.text-decoration-none {
    text-decoration: none !important;
}

/* Custom checkbox styling */
.custom-control-label {
    color: #6c757d;
    font-weight: 500;
}

.custom-control-label::before {
    border-radius: 6px;
}

.custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

/* Override any conflicting SB Admin 2 styles */
.card.o-hidden {
    overflow: visible !important;
}

.bg-login-image {
    display: none !important;
}

/* Ensure proper spacing */
.min-vh-100 {
    min-height: 100vh !important;
}

/* Fix any potential z-index issues */
.card {
    position: relative;
    z-index: 1;
}
