/* Register Page Styles - Updated to match main design */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

/* Page Header */
.page-header {
    background-color: var(--bg-light);
    padding: 80px 0 50px;
    text-align: center;
    margin-top: 30px;
}

.page-title {
    font-size: 56px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: -2px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--primary-color);
}

.breadcrumb {
    margin-top: 35px;
    font-size: 16px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

/* Register Page Layout */
.register-page {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Auth Card */
.auth-card {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    padding: 50px 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.auth-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h2 {
    font-size: 36px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 300;
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 15px;
}

.form-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 300;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--secondary-color);
    font-family: 'Tajawal', sans-serif;
}

.input-with-icon i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

.input-with-icon input:focus + i {
    color: var(--accent-color);
}

/* Checkbox Styles */
.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.checkbox-label:hover {
    color: var(--accent-color);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-left: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-text {
    font-weight: 400;
    color: var(--primary-color);
}

/* Form Actions */
.form-actions {
    margin-top: 35px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 16px 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    transition: left 0.3s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    color: var(--text-light);
    font-size: 15px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.auth-footer a:hover::after {
    width: 100%;
}

/* Alert Messages */
.alert {
    padding: 20px;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 400;
    border-left: 4px solid;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: var(--accent-color);
    color: #991b1b;
}

.alert p {
    margin: 5px 0;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .register-page {
        padding: 60px 0;
    }
    
    .auth-card {
        padding: 35px 25px;
    }
    
    .auth-header h2 {
        font-size: 28px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
    
    .input-with-icon input {
        font-size: 15px;
        padding: 12px 15px;
        padding-right: 45px;
    }
    
    .btn-primary {
        padding: 14px 25px;
        font-size: 15px;
    }
}