:root {
    --primary: #0c2e60;
    --primary-light: #144b8e;
    --secondary: #ffc107;
    --secondary-hover: #e0a800;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
}

.register-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.register-container {
    flex: 1;
    padding: 40px 0;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(12, 46, 96, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-card::before {
    content: '';
    position: absolute;
    width: 1200px;
    height: 1200px;
    background: linear-gradient(135deg, rgba(20, 75, 142, 0.03) 0%, rgba(12, 46, 96, 0.06) 100%);
    border-radius: 50%;
    top: -800px;
    right: -600px;
    z-index: -1;
}

/* Required field asterisk styling */
.form-label .text-danger {
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 2px;
}

/* Enhanced required field styling */
.form-label:has(.text-danger) {
    font-weight: 600;
}

/* Alternative for browsers that don't support :has() */
.form-label .text-danger {
    position: relative;
    top: -1px;
}

.auth-card::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.03) 0%, rgba(255, 193, 7, 0.06) 100%);
    border-radius: 50%;
    bottom: -500px;
    left: -400px;
    z-index: -1;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .auth-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
}

.auth-header .auth-logo i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-left: 10px;
}

.auth-header .auth-logo span:first-of-type {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.auth-header .auth-logo span:last-of-type {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.auth-title {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.form-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(12, 46, 96, 0.05);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(12, 46, 96, 0.15);
}

.input-group-text {
    background-color: rgba(12, 46, 96, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px 0 0 10px;
    color: var(--primary);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 1;
}

.form-control-with-icon {
    padding-right: 48px;
    padding-left: 48px;
}

.password-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 2;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.password-toggle:hover {
    color: #0d6efd;
}

.password-toggle i {
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(12, 46, 96, 0.2);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(12, 46, 96, 0.2);
}

.btn-social {
    height: 45px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-social i {
    font-size: 1.2rem;
    margin-left: 10px;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-google {
    background-color: #DB4437;
    border-color: #DB4437;
    color: #fff;
}

.btn-google:hover {
    background-color: #c53929;
    border-color: #c53929;
    color: #fff;
}

.divider-text {
    position: relative;
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin: 25px 0;
    transition: all 0.3s ease;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ced4da;
}

.divider-text::before {
    margin-left: 15px;
}

.divider-text::after {
    margin-right: 15px;
}

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

.form-check-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #6c757d;
}

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

.auth-footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.auth-help {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-top: 20px;
}

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

.auth-help a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefits-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
    color: #6c757d;
    font-size: 0.9rem;
}

.benefits-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    right: 0;
    top: 2px;
}

.password-requirements {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.password-requirements p {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

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

.password-requirements li {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 4px;
    padding-left: 20px;
    position: relative;
}

.password-requirements li::before {
    content: "\f00d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #dc3545;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.password-requirements li.valid::before {
    content: "\f00c";
    color: #198754;
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: 40px;
    background-image: none;
}

.form-control.is-valid {
    border-color: #198754;
    padding-right: 40px;
    background-image: none;
}

.invalid-feedback {
    font-size: 0.8rem;
}

.password-field-group {
    position: relative;
    margin-bottom: 1rem;
}

.password-strength-meter {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-meter .strength {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.password-strength-meter .strength.weak {
    width: 25%;
    background-color: #dc3545;
}

.password-strength-meter .strength.medium {
    width: 50%;
    background-color: #ffc107;
}

.password-strength-meter .strength.strong {
    width: 75%;
    background-color: #28a745;
}

.password-strength-meter .strength.very-strong {
    width: 100%;
    background-color: #198754;
}

.decoration-bus {
    position: absolute;
    font-size: 8rem;
    color: rgba(12, 46, 96, 0.03);
    z-index: -1;
}

.decoration-bus-1 {
    top: 40px;
    left: -60px;
    transform: rotate(-20deg);
}

.decoration-bus-2 {
    bottom: 40px;
    right: -60px;
    transform: rotate(20deg);
}

@media (max-width: 767.98px) {
    .auth-card {
        margin: 0 15px;
    }
    .password-section {
        margin-bottom: 1rem;
    }
}

/* RTL specific adjustments */
[dir="rtl"] .input-icon {
    right: auto;
    left: 16px;
}

[dir="rtl"] .password-toggle {
    left: auto;
    right: 16px;
}

[dir="rtl"] .form-control-with-icon {
    padding-right: 48px;
    padding-left: 48px;
}

[dir="rtl"] .password-requirements {
    text-align: right;
}

[dir="rtl"] .password-requirements li {
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .password-requirements li::before {
    left: auto;
    right: 0;
}

.form-control-with-icon.password-input {
    padding-right: 40px;
    padding-left: 40px;
}

.password-section {
    margin-bottom: 2rem;
}

.password-field {
    margin-bottom: 1rem;
}

/* Select dropdown styling */
select.form-control {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.form-control-with-icon {
    background-position: left 12px center;
    padding-left: 35px;
}

/* RTL adjustments for select */
[dir="rtl"] select.form-control {
    background-position: right 12px center;
}

[dir="rtl"] select.form-control-with-icon {
    background-position: right 12px center;
    padding-right: 35px;
    padding-left: 40px;
}

/* Select option styling */
select.form-control option {
    padding: 8px 12px;
    color: #333;
    background-color: #fff;
}

select.form-control option:disabled {
    color: #6c757d;
    background-color: #f8f9fa;
}

select.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(12, 46, 96, 0.15);
}

/* Activity Types Checkbox Styles */
.activity-types-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-top: 8px;
}

.activity-types-container .form-check {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-types-container .form-check:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(12, 46, 96, 0.1);
    transform: translateY(-1px);
}

.activity-types-container .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    margin-left: 8px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
}

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

.activity-types-container .form-check-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(12, 46, 96, 0.25);
}

.activity-types-container .form-check-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.activity-types-container .form-check-input:checked + .form-check-label {
    color: var(--primary);
}

.activity-types-container .form-check-label i {
    color: #6c757d;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.activity-types-container .form-check-input:checked + .form-check-label i {
    color: var(--primary);
}