.emoline-dealer-auth {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--emoline-section-space-y);
    background: linear-gradient(180deg, #fbfaf7 0%, #f3efe8 100%);
}

.emoline-dealer-auth__card {
    width: min(100%, 28rem);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(28, 26, 23, 0.08);
    box-shadow: 0 18px 48px rgba(28, 26, 23, 0.06);
}

.emoline-dealer-auth__title {
    margin: 0 0 0.5rem;
    font-family: var(--emoline-font-display);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 500;
}

.emoline-dealer-auth__subtitle {
    margin: 0 0 1rem;
    font-family: var(--emoline-font-display);
    font-size: 1.25rem;
    font-weight: 500;
}

.emoline-dealer-auth__lead {
    margin: 0 0 1.25rem;
    color: rgba(28, 26, 23, 0.62);
    font-size: 0.95rem;
    line-height: 1.6;
}

.emoline-dealer-auth__field {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(28, 26, 23, 0.55);
}

.emoline-dealer-auth__field input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(28, 26, 23, 0.14);
    background: #fff;
    color: var(--emoline-color-text);
    font-family: var(--emoline-font-sans);
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
}

.emoline-dealer-auth__field input:focus {
    outline: none;
    border-color: rgba(28, 26, 23, 0.45);
}

.emoline-dealer-auth__captcha {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.emoline-dealer-auth__captcha-img {
    display: block;
    width: 150px;
    height: 48px;
    border: 1px solid rgba(28, 26, 23, 0.12);
    background: #f6f3ec;
}

.emoline-dealer-auth__captcha input {
    width: 100%;
}

.emoline-dealer-auth__submit {
    width: 100%;
    justify-content: center;
}

.emoline-dealer-auth__links {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.875rem;
}

.emoline-dealer-auth__links a {
    color: rgba(28, 26, 23, 0.72);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.emoline-dealer-auth__error {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    background: rgba(180, 40, 40, 0.08);
    color: #8a1f1f;
    font-size: 0.9rem;
}

.emoline-dealer-auth__ok {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    background: rgba(37, 211, 102, 0.12);
    color: #146c38;
    font-size: 0.9rem;
}

.emoline-dealer-auth__rule {
    border: 0;
    border-top: 1px solid rgba(28, 26, 23, 0.1);
    margin: 1.35rem 0;
}

.emoline-dealer-auth__apply {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(28, 26, 23, 0.1);
    text-align: center;
}

.emoline-dealer-auth__apply-text {
    margin: 0 0 0.75rem;
    color: rgba(28, 26, 23, 0.62);
    font-size: 0.9rem;
}

.emoline-dealer-auth__apply-btn {
    width: 100%;
    justify-content: center;
}

.emoline-dealer-apply {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.emoline-dealer-apply[hidden] {
    display: none !important;
}

.emoline-dealer-apply__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 14, 0.55);
}

.emoline-dealer-apply__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    padding: clamp(1.35rem, 3vw, 1.85rem);
    background: #fff;
    border: 1px solid rgba(28, 26, 23, 0.08);
    box-shadow: 0 24px 64px rgba(28, 26, 23, 0.18);
}

.emoline-dealer-apply__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: rgba(28, 26, 23, 0.55);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.emoline-dealer-apply__title {
    margin: 0 1.5rem 0.45rem 0;
    font-family: var(--emoline-font-display);
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 500;
}

.emoline-dealer-apply__lead {
    margin: 0 0 1.1rem;
    color: rgba(28, 26, 23, 0.62);
    font-size: 0.92rem;
    line-height: 1.55;
}

.emoline-dealer-apply__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.emoline-dealer-apply__consent {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0.25rem 0 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(28, 26, 23, 0.72);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.emoline-dealer-apply__consent input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.emoline-dealer-apply__feedback {
    margin: 0 0 0.9rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
}

.emoline-dealer-apply__feedback.is-success {
    background: rgba(37, 211, 102, 0.12);
    color: #146c38;
}

.emoline-dealer-apply__feedback.is-error {
    background: rgba(180, 40, 40, 0.08);
    color: #8a1f1f;
}

