/* ============================================================
   REGISTER PAGE SAFE CSS (Fix giant eye SVG + messages)
============================================================ */

/* wrapper */
.cpl-register-wrapper{
    max-width: 450px;
    margin: 60px auto;
    background: #0b1020;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #FFD800;
    color: #FFD800;
    direction: rtl;
}

/* title */
.cpl-register-title{
    text-align:center;
    font-size:26px;
    margin-bottom:25px;
    color:#FFD800;
}

/* labels */
.cpl-register-form label{
    display:block;
    margin-bottom:6px;
    font-weight:bold;
    color:#FFE97A;
}

/* inputs */
.cpl-register-form input[type="text"],
.cpl-register-form input[type="email"],
.cpl-register-form input[type="password"],
.cpl-register-form input[type="file"]{
    width:100%;
    padding:10px;
    margin-bottom:12px;
    border-radius:6px;
    border:1px solid #FFD800;
    background:#11182e;
    color:#FFD800;
}

/* password row */
.cpl-password-wrapper{
    display:flex;
    align-items:center;
    gap:8px;
}

/* eye container */
.cpl-eye{
    width:24px;
    height:24px;
    flex:0 0 24px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

/* ✅ FIX GIANT SVG: force a small size */
.cpl-eye svg,
.cpl-eye-icon{
    width:24px !important;
    height:24px !important;
    max-width:24px !important;
    max-height:24px !important;
    display:block !important;
}

/* strength bar */
.cpl-pass-strength{
    margin-top:5px;
    height:6px;
    border-radius:4px;
    background:#333;
    overflow:hidden;
    margin-bottom:12px;
}
.cpl-pass-strength span{
    display:block;
    height:100%;
    width:0%;
    background:#FFD800;
    transition:0.3s;
}

/* messages */
.cpl-pass-msg{
    font-size:14px;
    margin-top:5px;
    min-height:18px;
}
.cpl-pass-msg.ok{ color: lightgreen; }
.cpl-pass-msg.no{ color: red; }

.cpl-error-anim{
    background:#ff3b3b;
    color:#fff;
    padding:10px;
    border-radius:6px;
    margin-top:10px;
    font-size:14px;
    animation: fadeSlide .2s ease;
}

@keyframes fadeSlide{
    from{opacity:0;transform:translateY(-5px);}
    to{opacity:1;transform:translateY(0);}
}

/* live field msg */
.cpl-field-msg{
    font-size:13px;
    margin-top:-8px;
    margin-bottom:10px;
    color:#ff4d4d;
    min-height:16px;
}
.cpl-field-msg.ok{ color:#00e676; }
.cpl-field-msg.error{ color:#ff4d4d; }

/* top box msg */
.cpl-msg-box{
    padding:12px;
    border-radius:6px;
    margin:0 0 15px;
    animation: fadeSlide .2s ease;
}
.cpl-msg-box.success{ background:#2ecc71; color:#000; }
.cpl-msg-box.error{ background:#e74c3c; color:#fff; }

/* terms */
.cpl-terms{
    margin:10px 0 15px;
    display:flex;
    align-items:center;
    gap:8px;
    color:#FFE97A;
}

/* submit */
.cpl-register-form button{
    width:100%;
    padding:12px;
    background:#FFD800;
    color:#0b1020;
    font-weight:bold;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-size:18px;
}
.cpl-register-form button:disabled{
    opacity:.7;
    cursor:not-allowed;
}

.cpl-register-login-link{
    text-align:center;
    margin-top:15px;
}
.cpl-register-login-link a{
    color:#FFD800;
    font-weight:bold;
}
