﻿@font-face {
    font-family: "NunitoRegular";
    src: url("../assets/fonts/Nunito-Regular.ttf") format("truetype");
}

.captcha-container {
    width: 100%;
    max-width: 100%;
    background-color: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captcha-display {
    width: 100%;
    background: white;
    border-radius: 4px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    outline: 1px solid #DEE3ED;
    padding: 0 10px;
    box-sizing: border-box;
}

#captchaImage {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    padding: 10px;
}

.captcha-controls {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.control-btn:hover {
    background-color: #e0e0e0;
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn i {
    color: #3D249F;
    font-size: 20px;
}

.captcha-input-container {
    position: relative;
    width: 100%;
}

#captchaInput {
    width: 100%;
    height: 50px;
    border-radius: 4px;
    outline: 1px solid #DEE3ED;
    font-family: "NunitoRegular", sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #222943;
    border: unset;
    background-color: white;
}

#captchaInput::placeholder {
    color: #6E7491;
    opacity: 1;
}

.captcha-input-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "NunitoRegular", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #222943;
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-error{
    font-family: "NunitoRegular", sans-serif;
    font-size: 12px;
    color: #c50b0b;
    margin-top: 15px;
    font-weight: 600;
    align-self: center;
    justify-self: center;
}

#captchaInput:focus + .captcha-input-label,
#captchaInput:not(:placeholder-shown) + .captcha-input-label {
    top: 1.5px;
    transform: unset;
    font-family: "NunitoRegular", sans-serif;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 0.01em;
}

.captcha-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
    width: 100%;
}

.captcha-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.captcha-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.control-btn.clicked {
    transform: scale(0.95);
}

.captcha-iframe {
    width: 100%;
    height: 150px;
    border: none;
    overflow: hidden;
}

/* Responsive ayarlar */
@media (max-width: 576px) {
    .captcha-controls {
        flex-direction: column; /* Butonları alt alta yerleştir */
        align-items: center; /* Butonları ortala */
    }

    .control-btn {
        width: 35px; /* Buton genişliğini ayarlayın */
        height: 35px; /* Buton yüksekliğini ayarlayın */
    }
}
