/* Sales portal login — matches Figma split-screen «تسجيل الدخول» */

.dslogin-shell {
    background: #fff;
}

.dslogin-media::after {
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.55) 38%,
        rgba(15, 23, 42, 0.15) 68%,
        rgba(0, 0, 0, 0) 100%
    );
}

.dslogin-media-content {
    padding-bottom: 56px;
}

.dslogin-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    margin-top: 8px;
}

.dslogin-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    color: #fff;
    white-space: nowrap;
}

.dslogin-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.95;
}

.dslogin-form-side {
    align-items: center;
}

.dslogin-card {
    max-width: 420px;
}

.dslogin-badge {
    border-radius: 16px;
}

.dslogin-form {
    margin-top: 28px;
}

.dslogin-form .dsreg-field {
    margin-top: 20px;
}

.dslogin-form .dsreg-field:first-child {
    margin-top: 0;
}

.dslogin-input-wrap {
    position: relative;
}

/* Match auth-flow: one custom eye only (no Edge/Chrome native reveal) */
.dslogin-input-wrap.dsauth-password-wrap input::-ms-reveal,
.dslogin-input-wrap.dsauth-password-wrap input::-ms-clear {
    display: none !important;
}

.dslogin-input-wrap input {
    width: 100%;
    height: 48px;
    padding-inline: 44px 17px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    color: #1c1c1c;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dslogin-input-wrap input::placeholder {
    color: #666;
    font-size: 13px;
}

.dslogin-input-wrap.dsreg-phone-wrap input {
    direction: rtl;
    text-align: right;
    padding: 0 44px 0 17px;
}

.dslogin-input-wrap.dsreg-phone-wrap .dslogin-input-icon {
    inset-inline-end: auto;
    right: 14px;
    left: auto;
}

.dslogin-input-wrap.dsreg-phone-wrap input::placeholder {
    letter-spacing: 0.02em;
}

.dslogin-input-wrap input:focus {
    border-color: var(--dsreg-primary, #5c872e);
    box-shadow: 0 0 0 3px rgba(92, 135, 46, 0.12);
}

.dslogin-input-icon {
    position: absolute;
    top: 50%;
    inset-inline-end: 14px;
    transform: translateY(-50%);
    display: inline-flex;
    color: #94a3b8;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.dslogin-input-wrap.is-filled .dslogin-input-icon {
    opacity: 0;
    visibility: hidden;
}

.dslogin-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.dslogin-forgot-row a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dslogin-forgot-row a:hover {
    color: var(--dsreg-primary, #5c872e);
}

.dslogin-submit {
    width: 100%;
    height: 48px;
    margin-top: 24px;
    border: none;
    border-radius: 12px;
    background: var(--dsreg-primary, #5c872e);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(92, 135, 46, 0.28);
}

.dslogin-submit:hover {
    background: #4f7428;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(92, 135, 46, 0.34);
}

.dslogin-register-row {
    margin: 28px 0 0;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.dslogin-register-row a {
    color: var(--dsreg-primary, #5c872e);
    font-weight: 700;
    text-decoration: none;
    margin-inline-start: 4px;
}

.dslogin-register-row a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .dslogin-form-side {
        min-height: 100vh;
        padding: 24px 20px 32px;
    }

    .dslogin-card {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .dslogin-features {
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }
}
