/* ═══════════════════════════════════════════════════
   LoginKit for Elementor — Frontend Styles v1.0.0
   https://prgwebtech.com
═══════════════════════════════════════════════════ */
:root {
    --lk-primary:       #4F46E5;
    --lk-primary-hover: #4338CA;
    --lk-error-text:    #DC2626;
    --lk-error-bg:      #FEF2F2;
    --lk-error-border:  #FECACA;
    --lk-success-text:  #16A34A;
    --lk-success-bg:    #F0FDF4;
    --lk-success-border:#BBF7D0;
    --lk-input-border:  #D1D5DB;
    --lk-input-focus:   #4F46E5;
    --lk-text:          #111827;
    --lk-muted:         #6B7280;
    --lk-bg:            #FFFFFF;
    --lk-radius:        8px;
    --lk-radius-sm:     6px;
    --lk-transition:    0.2s ease;
}

.lk-form *, .lk-form *::before, .lk-form *::after { box-sizing: border-box; }
.lk-form { width: 100%; font-family: inherit; }

/* Title */
.lk-form-title {
    margin: 0 0 6px;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--lk-text);
    line-height: 1.3;
}
.lk-form-desc {
    margin: 0 0 20px;
    font-size: 0.92em;
    color: var(--lk-muted);
    line-height: 1.5;
}

/* Field Group */
.lk-field-group { margin-bottom: 16px; }

/* Label */
.lk-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875em;
    font-weight: 600;
    color: var(--lk-text);
}

/* Input Wrapper */
.lk-input-wrap { position: relative; }
.lk-input-wrap.lk-has-toggle .lk-input { padding-right: 44px; }

/* Input */
.lk-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95em;
    color: var(--lk-text);
    background: var(--lk-bg);
    border: 1.5px solid var(--lk-input-border);
    border-radius: var(--lk-radius-sm);
    outline: none;
    transition: border-color var(--lk-transition), box-shadow var(--lk-transition);
    -webkit-appearance: none;
}
.lk-input:focus {
    border-color: var(--lk-input-focus);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
.lk-input::placeholder { color: #9CA3AF; }

/* Password Toggle */
.lk-toggle-pass {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 44px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--lk-muted);
    padding: 0;
    transition: color var(--lk-transition);
}
.lk-toggle-pass:hover { color: var(--lk-primary); }
.lk-toggle-pass svg { width: 18px; height: 18px; }

/* Password Strength */
.lk-strength-bar {
    height: 4px;
    background: #E5E7EB;
    border-radius: 99px;
    margin-top: 8px;
    overflow: hidden;
}
.lk-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.lk-strength-fill.s0 { width:0% }
.lk-strength-fill.s1 { width:25%; background:#EF4444; }
.lk-strength-fill.s2 { width:50%; background:#F97316; }
.lk-strength-fill.s3 { width:75%; background:#EAB308; }
.lk-strength-fill.s4 { width:100%; background:#22C55E; }
.lk-strength-text {
    display: block;
    font-size: 0.78em;
    margin-top: 4px;
    font-weight: 600;
    color: var(--lk-muted);
    min-height: 1.2em;
}

/* Remember / Checkbox */
.lk-remember-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.lk-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875em;
    color: var(--lk-text);
    cursor: pointer;
    user-select: none;
}
.lk-checkbox-label input[type="checkbox"] {
    width: 16px; height: 16px;
    margin: 0; flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--lk-primary);
    cursor: pointer;
}
.lk-terms-group .lk-checkbox-label { align-items: flex-start; }
.lk-terms-group a { color: var(--lk-primary); text-decoration: none; }
.lk-terms-group a:hover { text-decoration: underline; }

/* Forgot Link */
.lk-forgot-link {
    font-size: 0.875em;
    color: var(--lk-primary);
    text-decoration: none;
    white-space: nowrap;
}
.lk-forgot-link:hover { text-decoration: underline; }

/* Submit Button */
.lk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    font-size: 0.95em;
    font-weight: 600;
    color: #fff;
    background: var(--lk-primary);
    border: none;
    border-radius: var(--lk-radius-sm);
    cursor: pointer;
    transition: background var(--lk-transition), transform var(--lk-transition), opacity var(--lk-transition);
    letter-spacing: 0.01em;
}
.lk-btn:hover { background: var(--lk-primary-hover); transform: translateY(-1px); }
.lk-btn:active { transform: translateY(0); }
.lk-btn:disabled, .lk-btn.lk-loading { opacity: 0.65; cursor: not-allowed; transform: none; }

/* Spinner dots animation */
.lk-btn-spinner {
    font-size: 0.5em;
    letter-spacing: 3px;
    animation: lkPulse 1s infinite;
}
@keyframes lkPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Message Box */
.lk-message {
    padding: 10px 14px;
    border-radius: var(--lk-radius-sm);
    font-size: 0.875em;
    margin-bottom: 16px;
    border: 1px solid transparent;
    line-height: 1.5;
}
.lk-message.error {
    color: var(--lk-error-text);
    background: var(--lk-error-bg);
    border-color: var(--lk-error-border);
}
.lk-message.success {
    color: var(--lk-success-text);
    background: var(--lk-success-bg);
    border-color: var(--lk-success-border);
}

/* Links row */
.lk-links {
    margin-top: 14px;
    text-align: center;
    font-size: 0.875em;
}
.lk-links a {
    color: var(--lk-primary);
    text-decoration: none;
}
.lk-links a:hover { text-decoration: underline; }

/* Logged-in state */
.lk-logged-in {
    padding: 14px 18px;
    background: #F9FAFB;
    border-radius: var(--lk-radius);
    border: 1px solid #E5E7EB;
    font-size: 0.9em;
}
.lk-logged-in a { color: var(--lk-primary); }
