/* Auth login — centered card layout */

.auth-login-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
    color: #334155;
    background:
        radial-gradient(circle at 12% 8%, rgba(var(--store-primary-rgb, 51, 102, 153), 0.07) 0%, transparent 42%),
        radial-gradient(circle at 88% 92%, rgba(var(--store-primary-rgb, 51, 102, 153), 0.05) 0%, transparent 38%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
}

.auth-login__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.25s ease;
}

.auth-login__back:hover {
    color: var(--store-primary, #336699);
}

.auth-login__shell {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 52rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.5rem;
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.04),
        0 20px 48px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
    .auth-login__shell {
        grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
        max-width: 56rem;
    }
}

.auth-login__visual {
    position: relative;
    overflow: hidden;
    padding: 2rem 1.75rem;
    color: #fff;
    background: linear-gradient(
        160deg,
        rgba(var(--store-primary-rgb, 51, 102, 153), 0.92) 0%,
        var(--store-primary, #336699) 55%,
        var(--store-primary-deep, #1e4976) 100%
    );
}

@media (max-width: 767px) {
    .auth-login__visual {
        padding: 1.75rem 1.5rem 1.5rem;
    }

    .auth-login__features {
        display: none;
    }

    .auth-login__visual-title {
        font-size: 1.45rem;
    }

    .auth-login__visual-text {
        font-size: 1rem;
    }
}

.auth-login__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.auth-login__visual-inner {
    position: relative;
    z-index: 1;
}

.auth-login__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.auth-login__brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.85rem;
}

.auth-login__brand-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.auth-login__brand-tagline {
    margin: 0.1rem 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.88;
}

.auth-login__visual-title {
    margin: 0 0 0.65rem;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.5;
}

.auth-login__visual-text {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.75;
    opacity: 0.9;
}

.auth-login__features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.auth-login__feature {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
}

.auth-login__feature i {
    font-size: 1.1rem;
    opacity: 0.92;
}

.auth-login__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.75rem;
}

@media (min-width: 576px) {
    .auth-login__main {
        padding: 2.25rem 2.5rem;
    }
}

.auth-login__card {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.auth-login__head {
    margin-bottom: 1.35rem;
    text-align: center;
}

.auth-login__title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.auth-login__subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

.auth-login__social {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.auth-login__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fafbfc;
    color: #475569;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-login__social-btn:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.auth-login__social-btn--facebook {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.2);
    background: rgba(24, 119, 242, 0.04);
}

.auth-login__social-btn--facebook:hover {
    background: rgba(24, 119, 242, 0.07);
    border-color: rgba(24, 119, 242, 0.32);
}

.auth-login__social-btn svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.auth-login__divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
}

.auth-login__divider::before,
.auth-login__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8edf3;
}

.auth-login__alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.95rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
}

.auth-login__alert--success {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.auth-login__field {
    margin-bottom: 1.1rem;
}

.auth-login__field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}

.auth-login__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-login__input-wrap input {
    width: 100%;
    height: 3rem;
    padding-block: 0;
    padding-inline: 2.65rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    text-align: right;
    direction: rtl;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auth-login__input-wrap input:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.auth-login__input-wrap input:focus {
    outline: none;
    border-color: rgba(var(--store-primary-rgb, 51, 102, 153), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--store-primary-rgb, 51, 102, 153), 0.1);
    background: #fff;
}

.auth-login__input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.auth-login__input-wrap input.auth-login__input--error {
    border-color: #f87171;
    background: #fef2f2;
}

.auth-login__input-wrap input.auth-login__input--error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.auth-login__input-icon {
    position: absolute;
    inset-inline-start: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.95rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.25s ease;
}

.auth-login__input-wrap:focus-within .auth-login__input-icon {
    color: var(--store-primary, #336699);
}

.auth-login__toggle-pass {
    position: absolute;
    inset-inline-end: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: 0.45rem;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.auth-login__toggle-pass:hover {
    color: var(--store-primary, #336699);
    background: rgba(var(--store-primary-rgb, 51, 102, 153), 0.08);
}

.auth-login__field:has(.auth-login__toggle-pass) input {
    padding-inline: 2.65rem;
}

.auth-login__remember {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.auth-login__remember input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--store-primary, #336699);
}

.auth-login__remember span {
    font-size: 0.98rem;
    font-weight: 500;
    color: #64748b;
}

.auth-login__errors {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    color: #dc2626;
}

.auth-login__errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-login__admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0.5rem 0.85rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--store-primary, #336699);
    background: rgba(var(--store-primary-rgb, 51, 102, 153), 0.06);
    border: 1px dashed rgba(var(--store-primary-rgb, 51, 102, 153), 0.28);
    border-radius: 0.6rem;
    cursor: pointer;
}

.auth-login__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.auth-login__forgot {
    font-size: 0.98rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.25s ease;
}

.auth-login__forgot:hover {
    color: var(--store-primary, #336699);
}

.auth-login__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: var(--store-primary, #336699);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--store-primary-rgb, 51, 102, 153), 0.28);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.auth-login__submit:hover {
    background: var(--store-primary-mid, #285580);
    box-shadow: 0 6px 18px rgba(var(--store-primary-rgb, 51, 102, 153), 0.32);
    transform: translateY(-1px);
}

.auth-login__actions--stack {
    justify-content: stretch;
}

.auth-login__actions--stack .auth-login__submit {
    width: 100%;
}

.auth-login__intro {
    margin: 0 0 1.15rem;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.75;
    color: #64748b;
    text-align: center;
}

.auth-login__footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f6;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 500;
    color: #64748b;
}

.auth-login__footer a {
    font-weight: 700;
    color: var(--store-primary, #336699);
    text-decoration: none;
}

.auth-login__footer a:hover {
    text-decoration: underline;
}

.auth-login__social-hint {
    margin: 0 0 1rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 0.75rem;
}

@media (max-width: 575px) {
    .auth-login {
        padding: 1.25rem 1rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .auth-login__main {
        padding: 1.5rem 1.25rem;
    }

    .auth-login__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-login__submit {
        width: 100%;
        order: -1;
    }
}
