/* الإعدادات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body.login-page {
    background-color: #0b1120;
    color: #f3f4f6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: 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;
}

@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: 0 1rem;
    z-index: 10;
}

.login-card {
    max-width: 450px;
    margin: 0 auto;
    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.3s ease;
}

.login-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);
}

/* العناصر الداخلية */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.site-logo {
    height: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-top: 1rem;
}

.subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.login-form .input-group {
    margin-bottom: 1.25rem;
}

.label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    margin-left: 0.25rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: 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 0.75rem 2.5rem;
    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:focus {
    outline: none;
    border-color: #0ea5e9;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.eye-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background-color: #0ea5e9;
    color: white;
    font-weight: bold;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.submit-btn:hover {
    background-color: #38bdf8;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.card-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.signup-link,
.forgot-link {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
}

.signup-link:hover,
.forgot-link:hover {
    text-decoration: underline;
}

/* التنبيهات */
.alert {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert-warning {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}
/* تنسيق خانة الـ OTP لتشبه إدخال الأرقام السرية */
.otp-input {
    text-align: center;
    letter-spacing: 8px;
    font-weight: bold;
    font-size: 1.25rem;
    padding-left: 1rem !important; /* لإلغاء تأثير الأيقونة */
}