/* Auth Pages Styles - Based on old register.css */
:root {
  --primary-color: #013047;       /* Main brand color */
  --secondary-color: #F6851F;     /* Orange accent */
  --text-color: #219EBC;          /* Text color */
  --light-bg: #f8f9fa;            /* Light background */
  --light-text: #ffffff;          /* White text */
  --dark-text: #333333;           /* Dark text */
  --gray-text: #6c757d;           /* Gray text */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

/* Auth Section */
.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.auth-container {
    display: flex;
    background-color: var(--light-text);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 90%;
    max-width: 1000px;
}

.auth-image {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.auth-form {
    flex: 1;
    padding: 50px;
}

.auth-form h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    padding-right: 15px;
    border-right: 4px solid var(--secondary-color);
}

.auth-form p {
    color: var(--gray-text);
    margin-bottom: 30px;
}

.auth-form p a {
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-form p a:hover {
    color: #e6740e;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    margin-left: 10%;
}

.form-group label {
    display: flex;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 500;
    max-width: 500px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s;
    background: #fff;
    color: var(--dark-text);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 133, 31, 0.2);
}

.password-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--gray-text);
}

/* Terms */
.terms {
    display: flex;
    align-items: center;
    margin: 20px 0;
    width: 100%;
    margin-left: 10%;
}

.terms input {
    margin-left: 10px;
    width: auto;
}

.terms label {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin: 0;
}

.terms a {
    color: var(--secondary-color);
    text-decoration: none;
}

.terms a:hover {
    color: #e6740e;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.primary-btn:hover {
    background-color: #012235;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.secondary-btn:hover {
    background-color: #e6740e;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
    margin-left: 10%;
    max-width: 500px;
}

/* Forgot Password */
.forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #e6740e;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error and Success Messages */
.message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
    margin-left: 10%;
    max-width: 500px;
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.message.info {
    background: rgba(246, 133, 31, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(246, 133, 31, 0.2);
}

/* Field Error */
.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-image {
        min-height: 200px;
        padding: 1rem;
    }
    
    .auth-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .auth-container {
        width: 100%;
        margin: 0;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-left: 0;
    }
    
    .btn-block {
        margin-left: 0;
    }
    
    .terms {
        margin-left: 0;
    }
    
    .message {
        margin-left: 0;
    }
} 