.hcl-auth-modal[hidden] {
    display: none !important;
}

.hcl-auth-modal,
.hcl-auth-modal * {
    box-sizing: border-box;
}

.hcl-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #1e293b;
    font-family: inherit;
}

.hcl-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(4px);
}

.hcl-auth-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    width: min(448px, 100%);
    max-height: min(92dvh, 850px);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    outline: 0;
}

.hcl-auth-header {
    position: relative;
    flex: 0 0 auto;
    min-height: 115px;
    padding: 24px 92px 20px 20px;
    background: #0d172d;
    color: #ffffff;
}

.hcl-auth-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-bottom: 7px;
    padding: 0 11px;
    border: 1px solid rgba(251, 113, 133, 0.55);
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.18);
    color: #fda4af;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.025em;
    line-height: 1;
    text-transform: uppercase;
}

.hcl-auth-header h2 {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.hcl-auth-header p {
    margin: 0;
    color: #d6deec;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.hcl-auth-user-art {
    position: absolute;
    right: 31px;
    bottom: 9px;
    width: 78px;
    height: 78px;
    color: rgba(148, 163, 184, 0.2);
}

.hcl-auth-close {
    appearance: none;
    position: absolute;
    top: 39px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.62);
    color: #e2e8f0;
    box-shadow: none;
}

.hcl-auth-close:hover {
    background: rgba(100, 116, 139, 0.82);
    color: #ffffff;
}

.hcl-auth-close svg {
    width: 21px;
    height: 21px;
}

.hcl-auth-content {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px;
    overscroll-behavior: contain;
}

.hcl-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 17px;
    padding: 4px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #f1f5f9;
}

.hcl-auth-tabs button {
    appearance: none;
    height: 34px;
    min-height: 0;
    margin: 0 !important;
    padding: 0 10px;
    border: 1.5px solid transparent;
    border-radius: 9px;
    background: #ffffff;
    color: #475569;
    box-shadow: none;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    text-transform: none;
}

.hcl-auth-tabs button[aria-selected="true"] {
    border-color: #111827;
    background: #00ad43;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.hcl-auth-tabs button[data-hcl-auth-tab-button="register"][aria-selected="true"] {
    background: #ef0014;
}

.hcl-auth-message {
    margin: 0 0 14px;
    padding: 11px 12px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.hcl-auth-message.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.hcl-auth-form[hidden] {
    display: none !important;
}

.hcl-auth-notice {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.hcl-auth-notice.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.hcl-auth-notice.is-warning {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

.hcl-auth-field {
    display: block;
    margin: 0 0 14px !important;
}

.hcl-auth-field > span:first-child {
    display: block;
    margin: 0 0 6px;
    color: #263349;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.3;
}

.hcl-auth-districts {
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.hcl-auth-districts legend {
    margin: 0 0 7px;
    padding: 0;
    color: #263349;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.3;
}

.hcl-auth-district-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.hcl-auth-district-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 34px;
    margin: 0 !important;
    padding: 7px 8px;
    border: 1px solid #dbe4ef;
    border-radius: 9px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.hcl-auth-district-options label:hover {
    border-color: #86efac;
    background: #f0fdf4;
}

.hcl-auth-district-options label:has(input:checked) {
    border-color: #00ad43;
    background: #f0fdf4;
    color: #087a35;
}

.hcl-auth-district-options label.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.hcl-auth-district-options input[type="checkbox"] {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: #00ad43;
}

.hcl-auth-districts > small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.35;
}

.hcl-auth-districts > small strong {
    color: #087a35;
    font-size: 10px;
    font-weight: 850;
}

.hcl-auth-input-wrap {
    display: flex !important;
    align-items: center;
    gap: 9px;
    height: 39px;
    padding: 0 12px;
    border: 1px solid #cbd8e7;
    border-radius: 11px;
    background: #ffffff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.hcl-auth-input-wrap:focus-within {
    border-color: #00ad43;
    box-shadow: 0 0 0 3px rgba(0, 173, 67, 0.1);
}

.hcl-auth-input-wrap svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #94a3b8;
}

.hcl-auth-input-wrap input {
    width: 100%;
    height: 37px;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1e293b;
    font-size: 11px;
    font-weight: 650;
}

.hcl-auth-input-wrap input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.hcl-auth-upload {
    position: relative;
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    min-height: 93px;
    padding: 10px 12px;
    border: 2px dashed #cbd8e7;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.hcl-auth-upload:hover,
.hcl-auth-upload.is-selected {
    border-color: #60a5fa;
    background: #f0f9ff;
}

.hcl-auth-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hcl-auth-upload-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 1px solid #dbe4ef;
    border-radius: 9px;
    background: #ffffff;
    color: #94a3b8;
}

.hcl-auth-upload-icon svg {
    width: 24px;
    height: 24px;
}

.hcl-auth-upload-text {
    min-width: 0;
}

.hcl-auth-upload-text strong,
.hcl-auth-upload-text small {
    display: block;
}

.hcl-auth-upload-text strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcl-auth-upload-text small {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.3;
}

.hcl-auth-upload-arrow {
    width: 18px;
    height: 18px;
    color: #ef0014;
}

.hcl-auth-privacy {
    margin: -2px 0 14px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.45;
}

.hcl-auth-submit {
    appearance: none;
    width: 100%;
    height: 44px;
    min-height: 0;
    margin: 2px 0 0 !important;
    padding: 0 15px;
    border: 0;
    border-radius: 11px;
    background: #00ad43;
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(0, 173, 67, 0.2);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-transform: none;
}

.hcl-auth-submit:hover {
    background: #009b3d;
    color: #ffffff;
}

.hcl-auth-submit.is-register {
    background: #58bd83;
}

.hcl-auth-submit:disabled {
    cursor: wait;
    opacity: 0.62;
}

body.hcl-auth-open {
    overflow: hidden;
}

button.hcl-role-option {
    appearance: none;
    width: 100%;
    height: auto;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
}

button.hcl-role-option:hover {
    background: #f8fafc;
    color: #0f172a;
}

@media only screen and (max-width: 520px) {
    .hcl-auth-modal {
        align-items: flex-end;
        padding: 8px;
    }

    .hcl-auth-dialog {
        max-height: 95dvh;
        border-radius: 20px;
    }

    .hcl-auth-header {
        min-height: 108px;
        padding: 20px 76px 17px 17px;
    }

    .hcl-auth-header h2 {
        font-size: 16px;
    }

    .hcl-auth-user-art {
        right: 23px;
        width: 68px;
        height: 68px;
    }

    .hcl-auth-close {
        top: 34px;
        right: 13px;
        width: 34px;
        height: 34px;
    }

    .hcl-auth-content {
        padding: 20px 16px;
    }
}
