/* auth_theme.css */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

body {
    background: #f0f4f8;
    background-image: radial-gradient(circle at 50% 0%, #dbeafe 0%, #f0f4f8 100%);
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    color: #334155;
}

.auth-wrapper {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1);
    padding: 50px 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-sizing: border-box;
    border-top: 6px solid #2563eb;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.auth-logo-container {
    margin-bottom: 30px;
    position: relative;
}

.logo-wrapper {
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.logo-wrapper img {
    max-height: 85px;
    max-width: 200px;
    object-fit: contain;
}

.auth-sys-name {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 5px;
}

.auth-sys-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 600;
}

.auth-portal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #e2e8f0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form-group {
    position: relative;
    text-align: right;
}

.auth-form-group input {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px 15px 16px 45px;
    color: #1e293b;
    font-size: 1.05rem;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

html[dir="rtl"] .auth-form-group input {
    padding-right: 48px;
    padding-left: 15px;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.auth-icon {
    position: absolute;
    right: 18px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.3s ease;
}

.auth-form-group input:focus+.auth-icon,
.auth-form-group input:focus~.auth-icon,
.auth-form-group:focus-within .auth-icon {
    color: #2563eb;
}

html[dir="ltr"] .auth-icon {
    left: 18px;
    right: auto;
}

.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.auth-meta a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.auth-meta a:hover {
    color: #1d4ed8;
}

.auth-meta label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    cursor: pointer;
    font-weight: 700;
}

.auth-meta input[type="checkbox"] {
    accent-color: #2563eb;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-btn {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.auth-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.auth-footer-dev {
    margin-top: 35px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.version-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

.developer-credit {
    margin-top: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.developer-name {
    color: #2563eb;
    font-weight: 800;
}

.error-msg-card {
    background: #fef2f2;
    color: #b91c1c;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid #fecaca;
    font-size: 1rem;
    text-align: center;
}