/* =========================================================
   🔥 RSP SYSTEM FINAL (PRODUCTION CLEAN BUILD)
========================================================= */

/* ================= WRAP ================= */
.rsp-wrap{
    display:flex;
    justify-content:center;
    width:100%;
}

/* ================= CARD ================= */
.rsp-card {
    max-width: 520px;
    width:100%;
    margin: 80px auto;
    padding: 35px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

/* ================= FORM ELEMENTS ================= */
.rsp-form input,
.rsp-form select,
.rsp-form textarea,
#rsp-login-form input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* INPUT FOCUS */
.rsp-form input:focus,
#rsp-login-form input:focus {
    border-color:#000;
    outline:none;
}

/* ================= LABEL ================= */
.rsp-form label,
#rsp-login-form label {
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

/* ================= GRID ================= */
.rsp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rsp-full {
    grid-column: span 2;
}

/* ================= FIELD ================= */
.rsp-field{
    margin-bottom:16px;
}

/* ================= PASSWORD ================= */
.rsp-password-wrap {
    position: relative;
}

.rsp-password-wrap input {
    padding-right: 45px;
}

/* 🔥 EYE BUTTON (FINAL FIX) */
.rsp-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;

    padding: 0;
    margin: 0;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.rsp-eye::before {
    content: '👁';
    font-size: 16px;
}

.rsp-eye.active::before {
    content: '🙈';
}

.rsp-eye:hover {
    opacity: 0.7;
}

/* ================= BUTTON ================= */
.rsp-submit {
    width: 100%;
    padding: 14px;
    background: black;
    color: white;
    border-radius: 8px;
    border: none;
    cursor:pointer;
    transition: all 0.2s ease;
}

.rsp-submit:hover{
    background:#222;
}

/* ================= SUCCESS ================= */
.rsp-success-msg{
    background:#e6f7ec;
    color:#1a7f37;
    padding:12px 16px;
    border-radius:6px;
    margin-bottom:20px;
}

/* ================= ERROR ================= */
.rsp-error{
    border-color:#e00000 !important;
    background:#fff5f5;
}

.rsp-error-msg{
    color:#e00000;
    font-size:12px;
    margin-top:6px;
    background:#ffecec;
    padding:6px 10px;
    border-radius:6px;
}

/* FIX GRID ERROR ALIGN */
.rsp-grid .rsp-error-msg {
    grid-column: span 2;
}

/* ================= LOGIN FORM ================= */
#rsp-login-form {
    max-width: 420px;
    margin: 0 auto;
}

/* REMEMBER ME */
#rsp-login-form .rsp-remember {
    display:flex;
    align-items:center;
    gap:10px;
    margin:10px 0 20px;
}

#rsp-login-form .rsp-remember input {
    width:16px;
    height:16px;
    margin:0;
}

/* ================= FORGOT ================= */
.rsp-forgot {
    margin-top: 12px;
    text-align: right;
    font-size:14px;
}

/* ================= REGISTER LINK ================= */
.rsp-register-link {
    margin-top: 20px;
    font-size: 14px;
}

/* ================= COMPANY SEARCH ================= */
.rsp-autocomplete-wrap {
    position: relative;
}

.rsp-suggestions {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #fff;
    position: absolute;
    width: 100%;
    z-index: 9999;
    border-radius: 8px;
}

.rsp-suggestions div {
    padding: 10px;
    cursor: pointer;
}

.rsp-suggestions div:hover {
    background: #f5f5f5;
}

/* ================= RESET BUTTON ================= */
.rsp-input-inline {
    position: relative;
}

#rsp-company-reset {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor: pointer;
    font-size: 14px;
}

#rsp-company-reset:hover {
    background: #222;
}

.rsp-input-inline input {
    padding-right: 45px;
}

/* ================= CONSENTS ================= */
.rsp-consent-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.rsp-consent-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

.rsp-consent-item label span {
    font-size: 14px;
    line-height: 1.4;
}

/* ================= MOBILE ================= */
@media(max-width: 480px){

    .rsp-card {
        padding: 20px;
        margin:40px auto;
    }

    .rsp-grid {
        grid-template-columns: 1fr;
    }

    .rsp-full {
        grid-column: span 1;
    }

}