.k3-register-form-wrap {
    max-width: 420px;
    margin: 0 auto;
    padding: 8px 0 24px;
}

.k3-register-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.k3-register-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.k3-register-field label {
    font-size: 15px;
    font-weight: 400;
    color: #8a8a8a;
    line-height: 1.3;
}

.k3-register-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.k3-register-input-wrap input {
    width: 100%;
    padding: 8px 36px 10px 0;
    border: none !important;
    border-bottom: 1px solid #c8c8c8 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.2s ease;
    min-height: 0;
}

.k3-register-field:not(.k3-register-field--password) input {
    padding-right: 0;
}

.k3-register-input-wrap input:focus {
    border-bottom-color: #2b4593 !important;
    box-shadow: none !important;
}

.k3-register-input-wrap input::placeholder {
    color: #b0b0b0;
}

.k3-register-toggle-password {
    position: absolute;
    right: 0;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    line-height: 0;
}

.k3-register-toggle-password:hover,
.k3-register-toggle-password:focus {
    color: #2b4593;
    outline: none;
}

.k3-register-toggle-password svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.k3-register-toggle-password .k3-register-icon-eye-off {
    display: none;
}

.k3-register-toggle-password.is-visible .k3-register-icon-eye {
    display: none;
}

.k3-register-toggle-password.is-visible .k3-register-icon-eye-off {
    display: block;
}

.k3-register-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 3px;
    background: #2b4593;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.k3-register-submit:hover,
.k3-register-submit:focus {
    background: #243c82;
    outline: none;
}

.k3-register-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.k3-register-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    min-height: 1.5em;
}

.k3-register-message.is-error {
    color: #c0392b;
}

.k3-register-message.is-success {
    color: #1e7e34;
}

.k3-register-message.is-info {
    color: #666;
}

body.k3-register-modal-open {
    overflow: hidden;
}

.k3-register-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.k3-register-modal[hidden] {
    display: none !important;
}

.k3-register-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.k3-register-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 28px 24px 24px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.k3-register-modal__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    text-align: center;
}

.k3-register-modal__text {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    text-align: center;
}

.k3-register-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.k3-register-modal__primary {
    margin-top: 0;
}

.k3-register-modal__secondary {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    background: #fff;
    color: #444;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.k3-register-modal__secondary:hover,
.k3-register-modal__secondary:focus {
    border-color: #2b4593;
    color: #2b4593;
    outline: none;
}
