:root {
    --brand-primary: #0d6efd;
    --brand-primary-dark: #0b5ed7;
    --brand-dark: #0f172a;
    --brand-text: #1e293b;
    --brand-muted: #64748b;
    --brand-border: #dbe4f0;
    --brand-soft: #eff6ff;
    --brand-white: #ffffff;
    --brand-danger: #dc2626;
    --brand-warning-bg: #fff7e6;
    --brand-warning-text: #b7791f;
    --card-radius: 28px;
}

* {
    font-family: "Heebo", sans-serif;
}

html,
body {
    direction: rtl;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 100% 0%, rgba(13, 110, 253, 0.16), transparent 22%),
        radial-gradient(circle at 0% 100%, rgba(14, 165, 233, 0.14), transparent 24%),
        linear-gradient(135deg, #f8fbff 0%, #f1f6ff 45%, #f8fafc 100%);
    color: var(--brand-text);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 32px 0;
}

.auth-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.auth-card {
    border: none;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
    background: #fff;
}

.auth-form-side {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 48px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.auth-form-box {
    width: 100%;
    max-width: 430px;
    margin: auto;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.auth-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: var(--brand-primary);
    font-size: 1.7rem;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

.auth-subtitle {
    color: var(--brand-muted);
    line-height: 1.9;
    margin-bottom: 22px;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--brand-warning-bg);
    color: var(--brand-warning-text);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.field {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #334155;
}

.field-control {
    position: relative;
}

.field-input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    padding-right: 48px;
    padding-left: 16px;
    font-size: 15px;
    background: #fff;
    color: var(--brand-text);
    outline: none;
    transition: 0.2s ease;
}

.field-input:focus {
    border-color: var(--brand-primary);
}

.field-input::placeholder {
    color: #94a3b8;
}

.field-icon-right {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
}

.field-error {
    color: var(--brand-danger);
    font-size: 0.85rem;
    margin-top: 8px;
}

.auth-btn {
    min-height: 56px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.18);
}

.auth-btn:hover {
    box-shadow: 0 18px 34px rgba(13, 110, 253, 0.24);
}

.auth-links {
    margin-top: 18px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    color: var(--brand-primary-dark);
    text-decoration: underline;
}

.auth-info-side {
    min-height: 720px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, #0f172a 0%, #0b3b8c 48%, #0d6efd 100%);
    color: #fff;
    position: relative;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-info-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 18%),
        radial-gradient(circle at 78% 74%, rgba(255, 255, 255, 0.10), transparent 22%);
    pointer-events: none;
}

.auth-info-side > * {
    position: relative;
    z-index: 1;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    width: max-content;
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.15rem;
}

.info-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 28px 0 16px;
}

.info-text {
    max-width: 480px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
    font-size: 1.02rem;
}

.feature-list {
    margin-top: 32px;
}

.feature-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-item + .feature-item {
    margin-top: 14px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-item span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.93rem;
    line-height: 1.7;
}

.info-footer {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .auth-form-side,
    .auth-info-side {
        min-height: auto;
        padding: 32px 24px;
    }

    .info-title {
        font-size: 1.9rem;
    }

    .auth-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 18px 0;
    }

    .auth-form-side,
    .auth-info-side {
        padding: 24px 18px;
    }

    .field-input {
        height: 52px;
    }
}