/* RightGhar Authentication Styles */

:root,
[data-bs-theme=light] {
    --rightghar-black: #000;
    --rightghar-white: #fff;
    --rightghar-primary: #00DEB6;
    --rightghar-primary-dark: #00a88a;
    --rightghar-primary-hover: #00F5C9;
    --rightghar-secondary: #64748b;
    --rightghar-success: #059669;
    --rightghar-danger: #dc2626;
    --rightghar-warning: #d97706;
    --rightghar-info: #0891b2;
    --rightghar-border: 1px;
    --rightghar-border-bold: 2px;
}

.btn-primary {
    --bs-btn-color: var(--rightghar-black);
    --bs-btn-bg: var(--rightghar-primary);
    --bs-btn-border-color: var(--rightghar-primary);
    --bs-btn-hover-color: var(--rightghar-black);
    --bs-btn-hover-bg: var(--rightghar-primary-hover);
    --bs-btn-hover-border-color: var(--rightghar-primary-hover);
    --bs-btn-focus-shadow-rgb: var(--rightghar-black);
    --bs-btn-active-color: var(--rightghar-black);
    --bs-btn-active-bg: var(--rightghar-primary-hover);
    --bs-btn-active-border-color: var(--rightghar-primary-hover);
}

.btn-outline-primary {
    --bs-btn-color: var(--rightghar-black);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--rightghar-primary);
    --bs-btn-hover-color: var(--rightghar-black);
    --bs-btn-hover-bg: var(--rightghar-primary);
    --bs-btn-hover-border-color: var(--rightghar-primary);
    --bs-btn-focus-shadow-rgb: var(--rightghar-black);
    --bs-btn-active-color: var(--rightghar-black);
    --bs-btn-active-bg: var(--rightghar-primary);
    --bs-btn-active-border-color: var(--rightghar-primary);
    --bs-btn-border-width: var(--rightghar-border-bold);
}

.text-rg-primary {
    color: var(--rightghar-primary) !important;
}

/* Global Styles */
html, body {
    height: 100%;
}

body {
    font-family: "Poppins", "Montserrat", sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content wrapper - takes up remaining space */
.main-content {
    flex: 1 0 auto;
}

/* Footer - sticks to bottom */
.sticky-footer {
    flex-shrink: 0;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-family: "Montserrat", "Poppins", sans-serif;
    color: var(--bs-black);
}

.nav-logo {
    padding: 0 2px 2px 0;
}

.nav-slogan {
    display: block !important;
    font-size: 9px !important;
}

.nav-item .nav-link {
    font-family: "Poppins", "Montserrat", sans-serif;
}

.dropdown {
    z-index: 2000;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--rightghar-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-group-text {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

/* Password Requirements */
.password-requirements {
    display: grid;
    gap: 0.25rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.requirement.valid {
    color: var(--rightghar-success);
}

.requirement.valid i {
    color: var(--rightghar-success);
}

.requirement.valid i:before {
    content: "\f26a"; /* bi-check-circle-fill */
}

/* Trust Indicators */
.trust-indicator {
    padding: 1rem 0.5rem;
}

.trust-indicator i {
    display: block;
    margin-bottom: 0.5rem;
}

/* Loading States */
.submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Validation */
.was-validated .form-check-input:invalid ~ .form-check-label,
.form-check-input.is-invalid ~ .form-check-label {
    color: var(--rightghar-danger);
}

/* Alert Styles */
.alert {
    border-radius: 0.75rem;
    border: none;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .trust-indicator {
        padding: 0.5rem 0.25rem;
    }
    
    .trust-indicator i {
        font-size: 1.25rem !important;
    }
}

/* Phone Number Input Styling */
input[type="tel"] {
    letter-spacing: 0.5px;
}

/* Password Toggle Button */
#togglePassword {
    border-left: none;
}

#togglePassword:focus {
    box-shadow: none;
    border-color: var(--rightghar-primary);
}

/* Focus Management */
.form-control:focus + .input-group-text,
.input-group-text + .form-control:focus {
    border-color: var(--rightghar-primary);
}

/* Animation for form submission */
.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success/Error Message Animations */
.alert {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Indicators */
.verification-progress {
    align-items: center;
    justify-content: space-between;
    margin-top: -15px !important;
    padding-left: 15px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 60%;
    right: -40%;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 0;
}

.progress-step.active:not(:last-child)::after {
    background-color: var(--rightghar-primary);
}

.progress-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 1;
    position: relative;
}

.progress-step.active .progress-circle {
    background-color: var(--rightghar-primary);
    color: white;
}

.progress-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.progress-step.active .progress-label {
    color: var(--rightghar-primary);
    font-weight: 600;
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Will be implemented when dark mode is required */
}

.property-title-small {
    font-size: 16px !important;
}

.no-padding {
    padding: 0 !important;
}

.legal-content p {
    text-align: justify;
}

.auth-footer {
    font-size: 14px;
}

.auth-footer .link {
    text-decoration: none !important;
    font-size: 0.9em !important;
    padding: 2px;
    color: var(--rightghar-black);
}

.auth-footer .link:hover {
    text-decoration: underline !important;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    color: #1a1d21;
    padding: 2px;
    margin: 5px;
}