/* ============ Auth Pages ============ */
/* صفحات تسجيل الدخول */

.auth {
    max-width: 520px;
    margin: 38px auto;
    text-align: center;
}

.auth .card {
    background: var(--card);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.auth header h1 {
    text-align: center;
    margin: 0 0 5px;
}

.auth header p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 25px;
    font-size: 14px;
}

.auth form div {
    margin-bottom: 18px;
}

.auth label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.auth input[type="email"],
.auth input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.auth input:focus {
    border-color: var(--brand);
    outline: none;
}

.auth small {
    color: var(--muted);
    font-size: 12px;
}

.auth .remember {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.auth button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.3s;
}

.auth #login-btn {
    background: var(--brand);
    color: var(--bg);
}

.auth #login-btn:hover {
    opacity: 0.9;
}

.auth .links {
    text-align: center;
    margin-top: 15px;
}

.auth .links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.auth .links a:hover {
    text-decoration: underline;
}

.auth footer {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 20px;
}

.auth-admin-link {
    text-align: center;
}

/* ============ Development Overlay & New Form Styles ============ */
.dev-container {
    position: relative;
    overflow: hidden;
}

.dev-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(5px);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    cursor: not-allowed;
}

.dev-badge {
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    transform: rotate(-3deg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #374151;
    font-size: 1.1rem;
    border: 1px solid #e5e7eb;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-5px) rotate(-3deg);
    }
}

/* Input with Icons Styling */
.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 14px;
    padding-right: 48px;
    /* Space for icon in RTL */
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.2s;
}

.input-icon-wrapper input:focus {
    background: white;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
    outline: none;
}

.input-icon-wrapper .icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.2rem;
    pointer-events: none;
}

.btn-primary {
    background: var(--brand);
    /* Standardizing button color */
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Disabled Form State */
.form-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Modal Note */
.modal-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
}