/* Modern Auth Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

/* Global Styles */
:root {
    --primary-color: #0a66c2;
    --primary-hover: #004182;
    --secondary-color: #ffffff;
    --accent-color: #f3f6f8;
    --text-dark: #000000;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #dce1e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    background: #f3f6f8;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
}

.signup-container {
    width: 95%;
    max-width: 900px;
    margin: 0 auto;
}

/* Auth Card Container */
.signup-form-container {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

/* Tabs Header */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.tab-button {
    flex: 1;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-button:hover {
    color: var(--text-dark);
    background: var(--accent-color);
}

.tab-button.active {
    color: var(--primary-color);
    background: #ffffff;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.form-card {
    padding: 50px 100px;
    background: #ffffff;
}

/* Page Title */
.signup-title {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.signup-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.input-group-text {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0 12px;
    display: flex;
    align-items: center;
}

.form-control {
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 400;
    width: 100%;
    outline: none;
}

.form-control:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Select Fields */
.form-select {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-dark);
    font-size: 15px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
    outline: none;
}

/* Three Column Layout */
.row-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Two Column Layout */
.row-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Radio Button Styles */
.form-check-inline {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
}

.form-check-inline:first-child {
    margin-right: 0;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
    width: 18px;
    height: 18px;
}

/* Small Form Text */
.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* Card Header for Sections */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* Submit Button */
.btn-signup {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
}

.btn-signup:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}



/* Links */
.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.login-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}


/* Checkbox Styles */
.form-check {
    margin: 16px 0;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
}

.form-check-input {
    border: 2px solid var(--border-color);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    margin-left: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.form-check-label {
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    line-height: 1.5;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Validation Styles */
.invalid-feedback {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.input-group.is-invalid {
    border-color: var(--error-color);
}

.text-muted {
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .signup-container {
        width: 90%;
    }

    .form-card {
        padding: 40px 60px;
    }
}

@media (max-width: 768px) {
    .signup-container {
        width: 95%;
        max-width: 100%;
    }

    .form-card {
        padding: 30px 25px;
    }

    .signup-title {
        font-size: 24px;
    }

    .tab-button {
        font-size: 14px;
        padding: 16px 15px;
    }

    .row-cols-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .signup-container {
        width: 100%;
    }

    .form-card {
        padding: 25px 20px;
    }
}

/* RTL Support */
[dir="rtl"] .input-group-text {
    padding: 0 12px;
}

[dir="rtl"] .form-check {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-check-input {
    margin-left: 0;
    margin-right: 8px;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Password Requirements Styles */
.password-requirements {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    margin-top: 12px;
    border: 1px solid var(--border-color);
}

.password-requirements > div:first-child {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.password-requirements ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 13px;
    transition: color 0.3s ease;
}

.password-requirements li:last-child {
    margin-bottom: 0;
}

.password-requirements li i {
    margin-left: 8px;
    font-size: 8px;
    transition: all 0.3s ease;
}

.password-requirements li.valid {
    color: var(--success-color);
}

.password-requirements li.valid i {
    color: var(--success-color);
}

.password-requirements li i.fa-check-circle {
    color: var(--success-color);
    font-size: 12px;
}

.password-requirements li i.fa-circle {
    color: #cbd5e0;
}

/* Utility Classes */
.w-100 {
    width: 100%;
}

.py-2 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.mb-4 {
    margin-bottom: 24px;
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

/* Icon Styling */
.input-group-text i {
    font-size: 16px;
}

/* Smooth Transitions */
.form-control,
.form-select,
.btn-signup,
.btn-primary,
.tab-button {
    transition: all 0.3s ease;
}

/* Focus States */
.form-control:focus,
.form-select:focus {
    outline: none;
}

/* Print Friendly */
@media print {
    body {
        background: white;
    }
    
    .signup-form-container {
        box-shadow: none;
    }
}
