@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.otp-container {
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
}

.otp-form-container {
    position:relative;
    padding: 40px;
    border-radius: 20px;
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
}

.otp-container h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.otp-container form {
    display: flex;
    flex-direction: column;
}

.otp-container .otp-step {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.otp-container .otp-step.otp-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.otp-container #otpForm label {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.otp-container .otp-input-container {
    position: relative;
    margin-bottom: 20px;
}

.otp-container input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.otp-container input, .otp-container select:focus {
    outline: none;
    box-shadow: none;
}

.otp-container .otp-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #888;
}

.otp-container button, #psu-form button {
    text-align: center;
    width: 100%;
    background-color: #000;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.otp-container button:hover {
    
}

.otp-container button.emailswitch, button.otp-resend-message {
    width: 100%;
    color: gray;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background: none;
    transition: background-color 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.otp-container .otp-step:not(.otp-hidden) {
    animation: fadeIn 0.3s ease forwards;
}

.otp-loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #7c3aed;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: otp-spinner 1s linear infinite;
    z-index: 10;
}

@keyframes otp-spinner {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.otp-container .otp-error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.otp-container .country-code-dropdown {
    display: flex;
    align-items: center;
}

.otp-container .country-code-select {
    appearance: none; /* For most modern browsers */
    -moz-appearance: none; /* For Firefox */
    -webkit-appearance: none; /* For Safari and Chrome */
    background: none; /* Remove background to make it seamless */
    width: 100px;
    border: 1px solid #e0e0e0;
    background-color: white;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
}

.otp-rtl {
/* switch overall flow */
    direction: rtl;
}

.otp-rtl div.country-code-dropdown {direction: ltr;}


#profile-setup-modal-container h2 {
    margin-top: 0;
    text-align: center;
}

#psu-form input.psu-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

#psu-form input.psu-input:focus {
    outline: none;
    box-shadow: none;
}

#psu-form p {padding:0; margin:0;}