.input {
    position: relative;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 500;
}

.input-label i {
    font-size: 18px;
    color: #bbb;
    margin-left: 2px;
    margin-right: 0;
}

.input-row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    height: 42px;
    min-height: 42px;
}

.input-icon {
    display: none;
}

.gender-input {
    height: 42px !important;
    min-height: 42px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.gender-input > .fa-regular.fa-venus-mars {
    font-size: 18px;
    color: #bbb;
    margin-left: 2px;
    margin-right: 0;
}

.gender-radio-group {
    display: flex;
    gap: 0;
    width: 100%;
    align-items: center;
    height: 100%;
}

.gender-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    padding: 0 8px;
    border-radius: 8px;
    transition: background 0.2s;
    gap: 0;
    justify-content: center;
    height: 42px;
    user-select: none;
}

.gender-radio input[type="radio"] {
    margin-left: 7px;
    width: 18px;
    height: 18px;
    accent-color: inherit;
}

.gender-center {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
}

.gender-radio input[type="radio"]:focus + .gender-center {
    outline: none;
}

.input input[type="text"],
.input input[type="email"],
.input input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
    border: 1px solid #444;
    border-left: none;
    background: #23272f;
    color: #fff;
    font-size: 15px;
    outline: none;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    transition: border-color 0.2s;
    border: none;
    background: no-repeat;
}

.input input[type="text"]:focus,
.input input[type="email"]:focus,
.input input[type="password"]:focus {
    border-color: #3498db;
}

.input input[type="text"]::placeholder,
.input input[type="email"]::placeholder,
.input input[type="password"]::placeholder {
    color: #bbb;
    opacity: 1;
    transition: opacity 0.2s;
}

.input input[type="text"]:focus::placeholder,
.input input[type="email"]:focus::placeholder,
.input input[type="password"]:focus::placeholder {
    opacity: 0;
}

.gender-input .input-icon {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.gender-radio .custom-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-left: 7px;
    background: transparent;
    display: inline-block;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.gender-radio.male-radio input[type="radio"]:checked + .custom-radio {
    border-color: #3498db;
    background: #3498db;
}

.gender-radio.female-radio input[type="radio"]:checked + .custom-radio {
    border-color: #e17055;
    background: #e17055;
}

.gender-radio .gender-text {
    margin-left: 2px;
    font-size: 15px;
}

.gender-radio:hover, 
.gender-radio input[type="radio"]:focus + .custom-radio {
    background: rgba(52,152,219,0.08);
}

#recaptcha-alert-box {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(30,32,38,0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recaptcha-alert-content {
    background: rgba(40,44,52,0.95);
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.22);
    padding: 32px 28px 22px 28px;
    min-width: 280px;
    max-width: 90vw;
    text-align: center;
    position: relative;
    color: #fff;
    backdrop-filter: blur(6px);
    animation: fadeInAlert 0.2s;
}

@keyframes fadeInAlert {
    from { 
        opacity: 0; 
        transform: scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

.recaptcha-alert-close {
    position: absolute;
    top: 10px; 
    left: 14px;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.recaptcha-alert-close:hover {
    opacity: 1;
}

.recaptcha-alert-message {
    font-size: 17px;
    margin-bottom: 24px;
    font-weight: 500;
    color: #fff;
}

.recaptcha-alert-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.recaptcha-alert-btn {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 26px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.recaptcha-alert-btn:hover {
    background: #217dbb;
}

.mbti-warning {
    background: #23272f;
    color: #e17055;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e17055;
    text-align: right;
    display: block;
    animation: fadeInMbtiWarn 0.2s;
}

@keyframes fadeInMbtiWarn {
    from { 
        opacity: 0; 
        transform: translateY(-8px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.mbti-pink-btn {
    width: 100%;
    background: #c71786;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
    outline: none;
    margin:1rem 0;
}

.mbti-pink-btn:hover, 
.mbti-pink-btn:focus {
    background: #a0136a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transform: translateY(-2px) scale(1.03);
}

#mbti-quiz-modal-box {
    animation: mbtiPopIn 0.25s;
    box-shadow: 0 8px 40px 0 rgba(0,0,0,0.18) !important;
}

@keyframes mbtiPopIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Alert styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
    display: none;
}

.alert.success {
    background: #27ae60;
    color: #fff;
}

.alert.error {
    background: #e74c3c;
    color: #fff;
}

/* Loading animation */
.loader-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.loader-box.none {
    display: none;
}

.dot-loader {
    display: flex;
    gap: 4px;
}

.dot-item {
    width: 8px;
    height: 8px;
    background: #c71786;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out both;
}

.dot-item.second-dot {
    animation-delay: -0.16s;
}

.dot-item.third-dot {
    animation-delay: -0.32s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0);
    } 
    40% {
        transform: scale(1);
    }
}

.main-auth-panel .right-side {
    width: 100%;
}

.captcha-input {
    width: fit-content !important;
    padding: 0.5rem;
    direction: ltr;
    display: flex !important;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
}
.fa-shield-check {
    font-size: 25px;
    margin: 0 .5rem;
}
.captcha-question {
    font-size: 20px;
    margin: 0 .5rem;
    direction: ltr;
    margin-top: 6px;
}
input[name="captcha_answer"] {
    font-size: 20px ;
    background-color: #f5deb369;
    color: white;
    outline: none;
    border: none;
    border-radius: 15px;
    /*padding: 0 .3rem;*/
    text-align: center;
}
input[name="captcha_answer"]::placeholder {
    color: white;
}
#refresh-captcha{
    color: #c71786;
    margin: 0 0.5rem;
    font-size: 23px;
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    padding: .5rem;
    border-radius: 13px !important;
    outline: none;
}
form.form {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.form-box {
    background: #282c34;
    padding: 1rem;
    border-radius: 13px;
}

input[type="radio"] {
    opacity: 0 !important;
}

.operations {
    margin-top: 0 !important;
}
#register-btn {
    width: 30%;
    font-size: 20px;
}

@media only screen and (max-width: 600px) {
    body {
        background-color: #0d121e !important;
    }
    .captcha-input {
        flex-direction: column !important;
        gap: 15px;
        width: 100% !important;
    }
    #register-btn {
        width: 100%;
        font-size: 16px;
    }
    .right-side {
        padding: 1rem !important;
    }
    .form-box h1 {
        margin-top: 1rem;
    }
    
    .main-auth-panel {
        overflow-y: auto;
        position: unset;
        margin: 5rem auto;
    }
}

@media only screen and (max-height: 700px) {
    .main-auth-panel {
        position: relative !important;
        overflow-y: scroll !important;
        height: 100% !important;
        /*margin: 5rem 0 !important;*/
    }
}

.form-wrapper{
    position:relative;
}

.register-overlay{
    position:absolute;
    inset:0;
    background:rgba(255,255,255,.75);
    backdrop-filter:blur(3px);

    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;

    border-radius:12px;
    z-index:100;
}