/* الإعدادات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body.register-page {
    background-color: #0b1120;
    color: #f3f4f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    animation: fadeInPage 0.8s ease-in-out forwards;
}

@keyframes fadeInPage {
    0% {
        opacity: 0;
        background-color: #000;
    }

    100% {
        opacity: 1;
        background-color: #0b1120;
    }
}

/* التوهج الخلفي */
.bg-blur-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 450px;
    background-color: rgba(14, 165, 233, 0.4);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    transform: translate(-50%, -50%);
    animation: drift-slow 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes drift-slow {
    0% {
        transform: translate(-50%, -50%) translate(0, 0);
    }

    25% {
        transform: translate(-50%, -50%) translate(100px, -35px);
    }

    50% {
        transform: translate(-50%, -50%) translate(-30px, 40px);
    }

    75% {
        transform: translate(-50%, -50%) translate(25px, -100px);
    }

    100% {
        transform: translate(-50%, -50%) translate(0, 0);
    }
}

/* الحاوية والكارت */
.main-container {
    width: 100%;
    padding: 1.25rem 1rem;
    z-index: 10;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    align-items: center;
}

.register-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
}

.register-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.2);
}

/* الهيدر والشعار */
.header-logo {
    text-align: center;
    margin-bottom: 0.5rem;
}

.logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}

.site-logo {
    height: 2.5rem;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

/* مؤشر الخطوات (States for JavaScript) */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.4s ease;
}

.step-line {
    width: 5rem;
    height: 0.25rem;
    margin: 0 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.4s ease;
    background-color: #374151;
    /* Default line */
}

/* حالات الخطوات (يستخدمها الـ JS للتغيير) */
.step-circle.pending {
    background-color: #1f2937;
    color: #6b7280;
    border: 1px solid #4b5563;
}

.step-circle.active {
    background-color: #0ea5e9;
    color: white;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    border: none;
}

.step-circle.completed {
    background-color: #22c55e;
    color: white;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    border: none;
}

.step-line.active {
    background-color: #0ea5e9;
}

/* الحقول والنماذج */
.form-step {
    transition: all 0.5s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .grid-2-cols {
        grid-template-columns: 1fr 1fr;
    }
}

.label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    margin-left: 0.25rem;
}

.center-text {
    text-align: center;
}

.input-wrapper {
    position: relative;
}

.icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.input-field.with-icon {
    padding-left: 2.5rem;
}

.input-field.padding-right {
    padding-right: 2.5rem;
}

.input-field:focus {
    outline: none;
    border-color: #0ea5e9;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

/* إخفاء أسهم الأرقام في حقل الـ OTP */
.otp-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    font-weight: bold;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.eye-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: 0.3s;
}

.eye-btn:hover {
    color: white;
}

/* الأزرار */
.btn-container {
    padding-top: 0.5rem;
}

.submit-btn {
    width: 100%;
    color: white;
    font-weight: bold;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn {
    background-color: #0ea5e9;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.primary-btn:hover {
    background-color: #3b82f6;
}

.success-btn {
    background-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.success-btn:hover {
    background-color: #16a34a;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* نصوص الخطوة 2 */
.otp-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.otp-icon {
    font-size: 2.25rem;
    color: #0ea5e9;
    margin-bottom: 1rem;
}

.otp-text {
    font-size: 0.875rem;
    color: #d1d5db;
}

.change-email-container {
    text-align: center;
}

.change-email-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
}

.change-email-btn:hover {
    color: white;
}

/* الفوتر والتنبيهات */
.footer-text {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

.link-text {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
}

.link-text:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}