* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(to top, #e0e0ff 0%, #fff 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    position: relative;
}

.header-logos {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 20px 10px;
    margin-bottom: 20px;
    pointer-events: none;
}

.logo-ar {
    width: 250px;
    height: auto;
    pointer-events: auto;
    margin: 0 auto;
}

.reset-container {
    background: none;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.reset-header {
    text-align: center;
    margin-bottom: 30px;
}
 
.reset-header p {
    color: #718096;
    font-size: 0.95rem;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7d2ae8;
    font-size: 1.2rem;
}

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

.form-input:focus {
    border-color: #7d2ae8;
    outline: none;
}

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

.date-input-container {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.date-placeholder {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    z-index: 1;
}

/* محاذاة النص التوضيحي حسب اتجاه الصفحة */
html[dir="rtl"] .date-placeholder {
    text-align: right;
    right: 45px;
}

html[dir="ltr"] .date-placeholder {
    text-align: left;
    left: 45px;
}

.form-input[type="date"] {
    color: #718096;
    padding: 15px 45px;
    cursor: pointer;
}

/* إخفاء أيقونة التقويم الافتراضية */
.form-input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
    opacity: 0;
}

.form-input[type="date"]::-webkit-inner-spin-button,
.form-input[type="date"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    display: none;
}

/* محاذاة حقل التاريخ عكس النص التوضيحي */
html[dir="rtl"] .form-input[type="date"] {
    text-align: left;
}

html[dir="ltr"] .form-input[type="date"] {
    text-align: right;
}

.date-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    cursor: pointer;
}

.form-input[type="date"]:valid + .date-placeholder,
.form-input[type="date"]:focus + .date-placeholder {
    opacity: 0;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #e0e0ff;
    border: 2px solid #7d2ae8;
    border-radius: 12px;
    color: #7d2ae8;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(125, 42, 232, 0.4);
}

.language-switch {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.lang-btn {
    background: none;
    border: 2px solid #7d2ae8;
    color: #7d2ae8;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #7d2ae8;
    color: white;
    box-shadow: 0 2px 10px rgba(125, 42, 232, 0.2);
}

.lang-btn i {
    font-size: 16px;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: #7d2ae8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-to-login a:hover {
    text-decoration: none;
    color: #2d3748;
}

.verification-section {
    margin: 30px auto;
    padding: 25px;
    border-radius: 15px;
    background-color: #f8f5ff;
    border: 2px solid #7d2ae8;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(125, 42, 232, 0.1);
}

.verification-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #7d2ae8;
    font-size: 15px;
    text-align: center;
}

.verification-message i {
    font-size: 20px;
    margin-bottom: 5px;
}

.verification-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
    margin: 20px 0;
}

.verification-digit {
    width: 45px;
    height: 45px;
    border: 2px solid #7d2ae8;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #7d2ae8;
    background: white;
    transition: all 0.3s ease;
}

.verification-digit:focus {
    border-color: #7d2ae8;
    box-shadow: 0 0 0 2px rgba(125, 42, 232, 0.2);
    outline: none;
}

.verification-timer-container {
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: #7d2ae8;
    font-size: 16px;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(125, 42, 232, 0.15);
    min-width: 80px;
    text-align: center;
    direction: ltr;
}

.password-group .toggle-password {
    right: auto;
    left: 15px;
    cursor: pointer;
}

.new-password-section {
    margin-top: 20px;
}

.message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
    animation: slideDown 0.3s ease-out forwards;
    text-align: center;
    justify-content: center;
}

.success-message {
    background-color: #e8f5e9;
    border: 2px solid #66bb6a;
    color: #2e7d32;
}

.error-message {
    background-color: #fef2f2;
    border: 2px solid #ef5350;
    color: #dc2626;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

@media (max-width: 768px) {
    .header-logos {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .logo-ar {
        width: 80px;
    }
    
    .reset-container {
        padding: 20px;
    }

    .verification-inputs {
        gap: 8px;
    }

    .verification-digit {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 3000px) {
    .header-logos {
        position: relative;
        padding: 20px 10px;
        margin-bottom: 20px;
        top: 0;
    }
    
    .logo-ar {
        width: 250px;
        margin: 0 auto;
    }
    
    .reset-container {
        padding: 20px;
        margin-top: 0;
        min-height: auto;
        border-radius: 12px;
    }
}

/* RTL Styles */
html[dir="rtl"] .form-group i {
    right: 15px;
    left: auto;
}

html[dir="rtl"] .form-input {
    padding: 15px 45px 15px 45px;
    text-align: center;
}

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

/* LTR Styles */
html[dir="ltr"] .form-group i {
    left: 15px;
    right: auto;
}

html[dir="ltr"] .form-input {
    padding: 15px 45px 15px 45px;
    text-align: center;
}

html[dir="ltr"] .password-group .toggle-password {
    left: auto;
    right: 15px;
}

html[dir="ltr"] .password-group .fa-lock {
    left: 15px;
    right: auto;
}

html[dir="ltr"] .language-switch {
    right: 20px;
    left: auto;
} 