/* =============================================================================
   KT Register Form — Styles
   Pixel-matched to the client PNG design
   ============================================================================= */

.kt-register-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* ── Maple leaf divider (matches existing site divider) ──────────────────── */
.kt-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 8px;
}
.kt-divider-line {
    flex: 1;
    height: 1px;
    background: #c8a84b;
    opacity: 0.6;
}
.kt-divider-icon {
    color: #c8a84b;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.kt-divider-icon svg {
    width: 18px;
    height: 18px;
    fill: #c8a84b;
    display: block;
}

/* ── Form inner container ────────────────────────────────────────────────── */
.kt-register-form-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Field group ─────────────────────────────────────────────────────────── */
.kt-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kt-field-group label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* ── Input wrapper ───────────────────────────────────────────────────────── */
.kt-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Input: padding-left reserva espacio para el icono */
.kt-input-wrap input {
    width: 100% !important;
    padding: 11px 14px 11px 42px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    background: #fff;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.kt-input-wrap input::placeholder { color: #bbb; }

.kt-input-wrap input:focus {
    outline: none;
    border-color: #c8a84b;
    box-shadow: 0 0 0 2px rgba(200, 168, 75, 0.15);
}

.kt-input-wrap input.kt-valid   { border-color: #3a8a3a; }
.kt-input-wrap input.kt-invalid { border-color: #cc3333; }

/* ── SVG Icons (izquierda, pointer-events:none para no interferir) ────────── */
.kt-input-icon {
    position: absolute;
    left: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    width: 18px;
    height: 18px;
}
.kt-input-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

/* ── Password toggle (derecha) ───────────────────────────────────────────── */
.kt-toggle-password {
    position: absolute;
    right: 12px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.2s;
    opacity: 1;
}
.kt-toggle-password:hover { background: none !important;opacity: 1; }
.kt-toggle-password svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ── Field feedback ──────────────────────────────────────────────────────── */
.kt-field-feedback {
    font-size: 12px;
    min-height: 15px;
    display: block;
}
.kt-field-feedback.kt-feedback-ok       { color: #3a8a3a; }
.kt-field-feedback.kt-feedback-error    { color: #cc3333; }
.kt-field-feedback.kt-feedback-checking { color: #888; }

/* ── Password strength ───────────────────────────────────────────────────── */
.kt-password-strength-wrap {
    display: none;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}
.kt-password-strength-wrap.kt-visible { display: flex; }

.kt-strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.kt-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.kt-strength-fill.kt-s1 { width: 25%;  background: #cc3333; }
.kt-strength-fill.kt-s2 { width: 50%;  background: #e07800; }
.kt-strength-fill.kt-s3 { width: 75%;  background: #c8a200; }
.kt-strength-fill.kt-s4 { width: 100%; background: #3a8a3a; }
.kt-strength-label { font-size: 11px; color: #666; }

/* ── Checkboxes ──────────────────────────────────────────────────────────── */
.kt-checkbox-group { margin-top: 0; }
.kt-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    cursor: pointer;
    font-size: 13px !important;
    color: #1a1a1a !important;
    font-weight: 500 !important;
    line-height: 1.4;
    margin: 0 !important;
}
.kt-checkbox-label input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    cursor: pointer;
    accent-color: #000000;
    flex-shrink: 0;
    margin: 0 !important;
}

/* ── Form error ──────────────────────────────────────────────────────────── */
.kt-form-error {
    background: #fff0f0;
    border: 1px solid #cc3333;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    color: #cc3333;
}

.kt-register-wrap .kt-btn-register,
.kt-register-wrap button#kt-submit-btn,
button#kt-submit-btn {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px !important;
    background: #c8a84b !important;
    background-color: #c8a84b !important;
    color: #000 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    margin-top: 2px !important;
    transition: background 0.2s ease !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    font-family: "Geometric 415 Black", Sans-serif;
    box-shadow: none !important;
}
.kt-register-wrap .kt-btn-register:hover,
.kt-register-wrap button#kt-submit-btn:hover,
button#kt-submit-btn:hover {
    background: #c8a84b !important;
    background-color: #c8a84b !important;
    color: #000 !important;
}
.kt-register-wrap .kt-btn-register:disabled,
button#kt-submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Shop button (success screen) */
.kt-register-wrap a.kt-btn-register {
    display: block !important;
    max-width: 200px;
    /*max-width: 100%;*/
    margin: 0 auto !important;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.kt-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kt-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}
@keyframes kt-spin { to { transform: rotate(360deg); } }

/* ── Legal ───────────────────────────────────────────────────────────────── */
.kt-legal {
    font-size: 14px !important;
    color: #1a1a1a !important;
    text-align: center !important;
    margin-top: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    width: 68%;
    line-height: 1.1 !important;
    font-weight: 500;
    margin: 0 auto;
}
.kt-legal svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.kt-legal a {
    color: #01431f !important;
    text-decoration: underline !important;
}

/* ── Success screen ──────────────────────────────────────────────────────── */
.kt-success-screen { text-align: center; padding: 30px 0; }
.kt-success-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.kt-success-message { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 0; }
.kt-success-sub     { font-size: 16px; color: #555; margin: 0; }
.kt-redirect-notice { font-size: 13px; color: #888; margin: 0; }

/* ── Already logged in ───────────────────────────────────────────────────── */
.kt-already-logged-in { text-align: center; padding: 20px; }
.kt-already-logged-in p { margin-bottom: 16px; font-size: 15px; }


.kt-register-wrap .password-input .show-password-input:not(#kt-toggle-password) {
    display: none !important;
    pointer-events: none !important;
}

.kt-register-wrap .password-input {
    display: block;
    position: relative;
}

.kt-register-wrap .password-input input {
    padding-right: 42px !important;
}

.kt-register-wrap .show-password-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 22px;
    height: 22px;
    display: block;
    opacity: 1;
}

.kt-register-wrap .show-password-input::before {
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.3 3.3C16.9 2.9 16.2 2.9 15.7 3.3L13.3 5.7C12.2437 5.3079 11.1267 5.1048 10 5.1C6.2 5.2 2.8 7.2 1 10.5C1.2 10.9 1.5 11.3 1.8 11.7C2.6 12.8 3.6 13.7 4.7 14.4L3 16.1C2.6 16.5 2.5 17.2 3 17.7C3.4 18.1 4.1 18.2 4.6 17.7L17.3 4.9C17.7 4.4 17.7 3.7 17.3 3.3ZM6.7 12.3L5.4 13.6C4.2 12.9 3.1 11.9 2.3 10.7C3.5 9 5.1 7.8 7 7.2C5.7 8.6 5.6 10.8 6.7 12.3ZM10.1 9C9.6 8.5 9.7 7.7 10.2 7.2C10.7 6.8 11.4 6.8 11.9 7.2L10.1 9ZM18.3 9.5C17.8 8.8 17.2 8.1 16.5 7.6L15.5 8.6C16.3 9.2 17 9.9 17.6 10.8C15.9 13.4 13 15 9.9 15H9.1L8.1 16C8.8 15.9 9.4 16 10 16C13.3 16 16.4 14.4 18.3 11.7C18.6 11.3 18.8 10.9 19.1 10.5C18.8 10.2 18.6 9.8 18.3 9.5ZM14 10L10 14C12.2 14 14 12.2 14 10Z' fill='%23111111'/%3E%3C/svg%3E");
    content: "";
    display: block;
    height: 22px;
    width: 22px;
}

.kt-register-wrap .show-password-input.display-password::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C6.2 4 2.8 6.2 1 10C2.8 13.8 6.2 16 10 16C13.8 16 17.2 13.8 19 10C17.2 6.2 13.8 4 10 4ZM10 14C7.8 14 6 12.2 6 10C6 7.8 7.8 6 10 6C12.2 6 14 7.8 14 10C14 12.2 12.2 14 10 14ZM10 8C8.9 8 8 8.9 8 10C8 11.1 8.9 12 10 12C11.1 12 12 11.1 12 10C12 8.9 11.1 8 10 8Z' fill='%23111111'/%3E%3C/svg%3E");
}