* {
    font-family: "Rubik", sans-serif;
    font-weight: 400;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    background-color: #f8f9fa;
    color: #333;
}

.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.step-container {
    width: 100%;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #666;
}

button {
    width: 100%;
    height: 3rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #ff9925;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.code-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.code-input {
    width: 3rem;
    height: 3rem;
    border: 2px solid #ccc;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.5rem;
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

.code-input:focus {
    border-color: #ff9925;
    outline: none;
}

#feedback {
    text-align: center;
    margin-top: 1rem;
    color: #ff3333;
    font-size: 0.875rem;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    /* Adiciona o desfoque ao fundo */
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #ff9925;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

.messages-container {
    margin-top: 20px;
    font-size: 1rem;
    color: #333;
    text-align: center;
    overflow: hidden;
    /* Para garantir que o texto animado não ultrapasse o container */
}

.animated-message {
    display: inline-block;
    white-space: nowrap;
    animation-duration: 0.5s;
}

.fade-slide-in {
    animation: fadeSlideIn 0.5s ease-in forwards;
}

.fade-slide-out {
    animation: fadeSlideOut 0.5s ease-out forwards;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.dots span {
    opacity: 0;
    animation: dotsAnimation 2s infinite;
}

.dots span:nth-child(1) {
    animation-delay: 0.2s;
}

.dots span:nth-child(2) {
    animation-delay: 0.4s;
}

.dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotsAnimation {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

#timer {
    font-size: 1.1rem;
    font-weight: normal;
    color: #333;
    margin-top: 10px;
}

.timer-second {
    font-weight: bold;
    transition: color 0.3s ease;
}


@media (max-width: 396px) {
    .auth-container {
        background-color: #f8f9fa;
        box-shadow: none;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .code-inputs {
        justify-content: space-between;
    }

    .code-input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .messages-container {
        font-size: 0.875rem;
    }
}

@media (max-width: 354px) {
    .auth-container {
        background-color: #f8f9fa;
        box-shadow: none;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .code-inputs {
        justify-content: space-between;
    }

    .code-input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .messages-container {
        font-size: 0.75rem;
    }
}

@media (max-width: 321px) {
    .auth-container {
        background-color: #f8f9fa;
        box-shadow: none;
    }


    h1 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }


    #step-2 {
        margin-top: 1rem;
    }

    .code-inputs {
        justify-content: space-between;
    }

    .code-input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}