/* Container */
.prg-container {
    max-width: 28rem; /* max-w-md */
    margin: 0 auto; /* mx-auto */
    text-align: center; /* text-center */
    background-color: white; /* bg-white */
    padding: 2.5rem 1rem; /* py-10 px-4 */
    border-radius: 0.75rem; /* rounded-xl */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */ /* shadow */
}

@media (min-width: 640px) {
    .prg-container {
        padding-left: 2rem; /* sm:px-8 */
        padding-right: 2rem; /* sm:px-8 */
    }
}

/* Header */
.prg-header {
    margin-bottom: 2rem; /* mb-8 */
}

.prg-header h1 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: bold; /* font-bold */
    margin-bottom: 0.25rem; /* mb-1 */
}

.prg-header p {
    font-size: 0.9375rem; /* text-[15px] */
    color: #64748b; /* text-slate-500 */
}

/* Form */
#otp-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#prg-mobile-input-container label {
    display: flex;
}

#prg-mobile-input {
    height: 3.5rem !important; /* h-14 */
    text-align: center ; /* text-center */
    font-size: 1.5rem; /* text-2xl */
    font-weight: 800; /* font-extrabold */
    color: #0f172a; /* text-slate-900 */
    background-color: #f1f5f9; /* bg-slate-100 */
    border: 1px solid transparent; /* border border-transparent */
    border-radius: 0.375rem; /* rounded */
    padding: 1rem; /* p-4 */
    outline: none; /* outline-none */
    appearance: none; /* appearance-none */
    transition: background-color 0.15s, border-color 0.15s; /* smooth transitions */
    direction: ltr;
}

#prg-mobile-input::placeholder {
    color: #b1b1b1;
    font-size: 0.9rem;
}

/* Input group */
.prg-input-group {
    display: flex; /* flex */
    flex-direction: row-reverse;
    align-items: center; /* items-center */
    justify-content: center; /* justify-center */
    gap: 0.75rem; /* gap-3 */
}

.prg-input-group input {
    width: 3.5rem; /* w-14 */
    height: 3.5rem; /* h-14 */
    text-align: center; /* text-center */
    font-size: 1.5rem; /* text-2xl */
    font-weight: 800; /* font-extrabold */
    color: #0f172a; /* text-slate-900 */
    background-color: #f1f5f9; /* bg-slate-100 */
    border: 1px solid transparent; /* border border-transparent */
    border-radius: 0.375rem; /* rounded */
    padding: 1rem; /* p-4 */
    outline: none; /* outline-none */
    appearance: none; /* appearance-none */
    transition: background-color 0.15s, border-color 0.15s; /* smooth transitions */
}

.prg-input-group input:hover {
    border-color: #e2e8f0; /* hover:border-slate-200 */
}

.prg-input-group input:focus {
    background-color: white; /* focus:bg-white */
    border-color: var(--wd-primary-color); /* focus:border-indigo-400 */
    box-shadow: var(--wd-alternative-color); /* focus:ring-2 focus:ring-indigo-100 */
}

.prg-error {
    color: #e91e63;
    margin-top: 10px;
    text-align: center;
}

.prg-success{
    color: #2db100;
    margin-top: 10px;
    text-align: center;
}

.prg-loader {
    width: 22px;
    height: 22px;
    border: 2px solid #FFF;
    border-bottom-color: var(--wd-primary-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Button */
.prg-button-container {
    max-width: 16.25rem; /* max-w-[260px] */
    margin: 1rem auto 0; /* mx-auto mt-4 */
}

.prg-button {
    display: inline-flex; /* inline-flex */
    justify-content: center; /* justify-center */
    width: 100%; /* w-full */
    white-space: nowrap; /* whitespace-nowrap */
    padding: 0.625rem 1rem; /* px-3.5 py-2.5 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: white; /* text-white */
    background-color: var(--wd-primary-color); /* bg-indigo-500 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1); /* shadow-sm shadow-indigo-950/10 */
    transition: background-color 0.15s, box-shadow 0.15s; /* transition-colors duration-150 */
    outline: none; /* focus:outline-none */
}

.prg-button:hover {
    color: white;
    background-color: var(--wd-alternative-color);
}

/*.prg-button:focus {*/
/*    box-shadow: 0 0 0 3px #c7d2fe; !* focus:ring focus:ring-indigo-300 *!*/
/*}*/

#prg-retry-otp button {
    display: inline-flex; /* inline-flex */
    justify-content: center; /* justify-center */
    width: 100%;
    white-space: nowrap; /* whitespace-nowrap */
    padding: 0.625rem 1rem; /* px-3.5 py-2.5 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1); /* shadow-sm shadow-indigo-950/10 */
    transition: background-color 0.15s, box-shadow 0.15s; /* transition-colors duration-150 */
    outline: none;
}

/* Footer Text */
.prg-footer {
    margin-top: 1rem; /* mt-4 */
    font-size: 0.875rem; /* text-sm */
    color: #64748b; /* text-slate-500 */
}

.prg-footer a {
    font-weight: 500; /* font-medium */
    color: #6366f1; /* text-indigo-500 */
    transition: color 0.15s; /* smooth transition for hover */
}

.prg-footer a:hover {
    color: #4f46e5; /* hover:text-indigo-600 */
}
