* {
    margin: 0;
    padding: 0;
    font-family:'Almarai', sans-serif;
}

body {
    font-family:'Almarai', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    direction: rtl;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
}

.register-card {
    max-width: 500px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    background: linear-gradient(135deg, #e91e63 0%, #f45a5a 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo h1 {
    font-size: 2.5rem;
    color: white;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.logo p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.form-section {
    padding: 40px 30px;
}

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

.form-header h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-header p {
    color: #718096;
    font-size: 0.95rem;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease-in;
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background-color: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.alert-info {
    background-color: #e6fffa;
    color: #234e52;
    border: 1px solid #81e6d9;
}

.error-list {
    list-style: none;
    margin: 0;
}

.error-list li {
    margin-bottom: 4px;
}

.error-list li:last-child {
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    right: 15px;
    color: #a0aec0;
    font-size: 1.1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #f7fafc;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #e91e63;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.input-wrapper.focused i {
    color: #e91e63;
}

.form-input.error {
    border-color: #e53e3e;
    background-color: #fed7d7;
}

.form-input::placeholder {
    color: #a0aec0;
}

.toggle-password {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aec0;
    font-size: 1.1rem;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: #e91e63;
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar.very-weak .strength-fill { background-color: #e53e3e; }
.strength-bar.weak .strength-fill { background-color: #ff8a00; }
.strength-bar.medium .strength-fill { background-color: #ffd700; }
.strength-bar.strong .strength-fill { background-color: #38a169; }
.strength-bar.very-strong .strength-fill { background-color: #22543d; }

.strength-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.strength-text.very-weak { color: #e53e3e; }
.strength-text.weak { color: #ff8a00; }
.strength-text.medium { color: #ffd700; }
.strength-text.strong { color: #38a169; }
.strength-text.very-strong { color: #22543d; }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #e91e63;
    border-color: #e91e63;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link, .auth-link, .terms-link {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover, .auth-link:hover, .terms-link:hover {
    color: #ad1457;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #e91e63 0%, #f45a5a 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

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

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    color: #718096;
    font-size: 0.95rem;
}

/*.icon-mail::before { content: "📧"; }*/
/*.icon-lock::before { content: "🔒"; }*/
/*.icon-user::before { content: "👤"; }*/
/*.icon-phone::before { content: "📱"; }*/
.icon-eye::before { content: "👁"; }
.icon-eye-off::before { content: "👁‍🗨"; }
/*.icon-arrow-left::before { content: "←"; }*/
/*.icon-check::before { content: "✓"; }*/
/*.icon-x::before { content: "✕"; }*/
/*.icon-info::before { content: "ℹ"; }*/

@media (max-width: 768px) {
    .auth-container {
        padding: 15px;
    }
    .auth-card {
        border-radius: 15px;
    }
    .logo-section {
        padding: 30px 20px;
    }
    .logo h1 {
        font-size: 2rem;
    }
    .form-section {
        padding: 30px 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.phone-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.country-code {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-right: none;
    padding: 10px 12px;
    font-weight: 500;
    color: #555;
    border-radius: 4px 0 0 4px;
    white-space: nowrap;
}

.phone-input {
    border-radius: 0 4px 4px 0 !important;
    border-left: none;
    flex: 1;
}

[dir="rtl"] .country-code {
    border-radius: 0 4px 4px 0;
    border-left: none;
    border-right: 1px solid #ddd;
}

[dir="rtl"] .phone-input {
    border-radius: 4px 0 0 4px !important;
    border-right: none;
    border-left: 1px solid #ddd;
}

[dir="rtl"] .phone-wrapper .icon-phone {
    right: 8px;
    left: auto;
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    .form-header h2 {
        font-size: 1.5rem;
    }
    .form-input {
        padding: 12px 40px 12px 12px;
    }
}
