/* SectionLock Pro — Front-end styles */

/* Form wrapper */
.slp-form-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* Error */
.slp-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 8px;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
    animation: slp-shake .4s ease;
}

/* Label */
.slp-label {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
}

/* Stacked layout (default) */
.slp-layout-stacked .slp-input-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Inline layout */
.slp-layout-inline .slp-input-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}
.slp-layout-inline .slp-input { flex: 1; }
.slp-layout-inline .slp-btn   { flex-shrink: 0; margin-top: 0 !important; }

/* Input */
.slp-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.slp-input::placeholder { color: #9ca3af; }
.slp-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}

/* Button */
.slp-btn {
    display: block;
    width: 100%;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .18s, transform .1s, box-shadow .18s;
    line-height: 1;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.slp-btn:hover  { background: #4f46e5; }
.slp-btn:active { transform: scale(.97); }

/* Shake animation for error */
@keyframes slp-shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-7px); }
    40%      { transform: translateX(7px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

/* Responsive */
@media (max-width: 480px) {
    .slp-layout-inline .slp-input-row {
        flex-direction: column;
    }
    .slp-layout-inline .slp-btn {
        width: 100%;
    }
}
