﻿.pin-input {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
}

    .pin-input input {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        z-index: 1;
        font-size: 16px;
    }

.pin-slots {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.pin-slot {
    width: 40px;
    height: 40px;
    border: 2px solid #ccc;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    line-height: 40px;
    transition: border-color 0.3s ease;
    color: var(--gs-black);
    font-weight: 700;
}

.pin-slot.active {
    border-color: var(--secondary-color);
}

.pin-slot.filled {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.pin-input.error .pin-slot {
    border-color: #dc3545;
}

.pin-input:focus-within .pin-slots {
    /*box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);*/ /* Example: Add a blue outline */
}

.pin-input:focus-within .pin-slot.active {
    /* Styles to apply to the active slot when the input has focus */
    border-color: var(--secondary-color); /* Example: Change border color to blue */
}

.gs-otp-validation-container {
    display: flex;
    flex-direction: column;
    padding-inline: 16px;
    align-items: center;
    gap: 12px;
    color: var(--gs-white);
    margin-top: clamp(80px, 10vw, 140px);
}

.gs-otp-validation-container p {
    font-size: clamp(18px, 1.5vw, 22px);
}

.pin-input {
    /*margin-bottom: 26px;*/
}

.gs-resend-container * {
    margin: 0;
}

.gs-resend-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-block: 24px;
}

#resend-btn {
    color: #dfdfdf;
    text-decoration: underline;
}

#resend-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

#otp-error {
    font-size: clamp(16px, 1.2vw, 18px);
    color: #ff5656;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .gs-otp-validation-container {
        padding-top: 60px;
    }
}