/* Custom Styles for WhatsFlash Registration - Exact Replica */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Left Side - Form Styles */
.registration-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.5rem;
}

/* WhatsFlash Logo */
.whatsflash-logo-container {
    display: flex;
    align-items: center;
}

.whatsflash-logo-img {
    height: 48px; /* Increased from 32px */
    width: auto;
    object-fit: contain;
    background: transparent; /* Ensure transparent background */
    mix-blend-mode: normal; /* Ensure proper blending */
}

/* Back Button */
.back-btn {
    text-decoration: none !important;
    color: #6b7280 !important;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
}

.back-btn:hover {
    color: #374151 !important;
}

/* Social Login Buttons */
.social-btn {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    background-color: #ffffff;
    height: 48px;
}

.social-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.divider span {
    background-color: #f8f9fa;
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

/* Form Controls */
.form-control-custom {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    height: 48px;
    transition: all 0.2s;
    background-color: #ffffff;
}

.form-control-custom:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-control-custom::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* Password Toggle */
.password-toggle {
    border: none;
    background: none;
    color: #9ca3af;
    padding: 0;
    margin-right: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #6b7280;
}

.password-toggle:focus {
    box-shadow: none;
    outline: none;
}

/* Forgot Password Link */
.forgot-password-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password-link:hover {
    color: #4f46e5;
    text-decoration: none;
}

/* Terms Link */
.terms-link {
    color: #6366f1;
    text-decoration: underline;
    font-weight: 500;
}

.terms-link:hover {
    color: #4f46e5;
}

/* Register Button */
.register-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    height: 48px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.register-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.register-btn:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

/* Login Link */
.login-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Right Side - Promo Styles */
.promo-section {
    height: 100vh;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.promo-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: transparent; /* Ensure transparent background */
}

/* Form Validation Styles */
.was-validated .form-control-custom:valid {
    border-color: #10b981;
    background-image: none;
}

.was-validated .form-control-custom:invalid {
    border-color: #ef4444;
    background-image: none;
}

.was-validated .form-check-input:valid {
    border-color: #10b981;
}

.was-validated .form-check-input:invalid {
    border-color: #ef4444;
}

.invalid-feedback {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.valid-feedback {
    font-size: 12px;
    color: #10b981;
    margin-top: 4px;
}

/* Loading Animation */
.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading .spinner-border {
    display: inline-block !important;
}

/* Checkbox Styling */
.form-check-input {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.form-check-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .registration-container {
        max-width: 500px;
        padding: 1.5rem;
    }
    
    .promo-section {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .registration-container {
        padding: 1rem;
    }
    
    .whatsflash-logo-img {
        height: 40px; /* Increased from 28px for mobile */
    }
    
    .social-btn {
        font-size: 13px;
        padding: 10px 14px;
        height: 44px;
    }
    
    .form-control-custom {
        height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .register-btn {
        height: 44px;
        font-size: 15px;
    }
}

/* Smooth Transitions */
* {
    transition: all 0.2s ease-in-out;
}

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

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
    color: #374151;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid #f3f4f6;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #111827;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional styling for better image presentation */
@media (min-width: 992px) {
    .promo-image {
        max-width: 90%;
        max-height: 90%;
    }
}

@media (min-width: 1200px) {
    .promo-image {
        max-width: 85%;
        max-height: 85%;
    }
}

@media (min-width: 1400px) {
    .promo-image {
        max-width: 80%;
        max-height: 80%;
    }
}

/* Ensure transparent backgrounds for all images */
img {
    background: transparent !important;
}

/* Additional logo styling for better visibility */
.whatsflash-logo-img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}