﻿
.input-error {
    border: 2px solid red;
}

.expiration {
    color: #73717a;
    font-size: 14px;
    line-height: 100%;
}

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.left {
    flex: 8;
    background-color: #ffffff;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.06);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 1;
}

.right {
    flex: 2;
    background-color: rgba(165, 99, 250, 0.1);
    transition: all 0.5s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    overflow-y: auto;
}

.content {
    max-width: 448px;
    width: 100%;
    pointer-events: auto;
}

.logo {
    display: block;
    max-height: 97px;
    max-width: 214px;
}

.title {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 32px;
    color: #6040a1;
}

p {
    display: inline;
    white-space: nowrap;
}

.information {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.paste-code {
    float: right;
    margin-bottom: 0.5rem;
}

.btn-paste-code {
    color: #9747ff;
    border-radius: 8px;
    border: none;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 2px 2px;
    transition: all 0.2s ease;
}
    .btn-paste-code[disabled] {
        color: rgba(115, 113, 122, 1);
    }

    .btn-paste-code:disabled:hover {
        pointer-events: none;
        color: rgba(115, 113, 122, 1);
        background-color: transparent;
    }

.check-icon {
    width: 16px;
    height: 16px;
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 16px;
    color: #1F9854;
    flex: none;
    order: 1;
    flex-grow: 0;
    vertical-align: sub;
}

.check-circle-icon {
    width: 16px;
    height: 16px;
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 16px;
    color: #86F89A;
    flex: none;
    order: 1;
    flex-grow: 0;
    vertical-align: sub;
    margin-right: 8px;
}

.paste-icon {
    color: #9747FF;
    font-family: "Material Icons";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.refresh-icon {
    width: 18px;
    height: 18px;
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 18px;
    color: #6B4F00;
    flex: none;
    order: 0;
    flex-grow: 0;
    vertical-align: sub;
}

.token-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.token-input {
    width: 4.04169rem;
    height: 5rem;
    box-sizing: border-box;
    padding: 0.75rem 1.25rem;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid var(--neutral-400, #adb0b7);
    background: var(--off-white, #fafbfc);
    text-align: center;
    font-size: 2.3rem;
    font-style: normal;
    font-weight: 700;
}

    .token-input.is-invalid {
        border: 1px solid #F2415A;
    }

    .token-input:hover {
        border: 2px solid #666A79;
    }

.btn-reesend-code {
    background-color: transparent;
    border-radius: 8px;
    border: none;
    padding: 4px 4px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}
    .btn-reesend-code[disabled] {
        color: rgba(115, 113, 122, 1);
    }

.btn-verify-token {
    height: 46px;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 24px;
}

    .btn-verify-token:hover {
        border-radius: 6px;
    }

    .btn-verify-token[disabled] {
        background: var(--neutral-100, rgba(230, 230, 233, 1));
        color: rgba(149, 140, 171, 1);
    }

.btn-try-again {
    background-color: rgba(255, 229, 158, 1);
    color: #6B4F00;
    border-radius: 8px;
    border: none;
    padding: 4px 4px;
    transition: all 0.2s ease;
}

    .btn-try-again:hover {
        background-color: rgba(255, 217, 112, 1);
    }

.help-icon {
    width: 14px;
    height: 14px;
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    color: #8C8F9A;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.btn-help {
    color: #666A79;
    border-radius: 8px;
    border: none;
    background-color: transparent;
    font-family: 'Ubuntu';
    font-style: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* --- Responsive Styles --- */

/* Mobile (até 576px) */
@media (max-width: 576px) {
    .container {
            flex-direction: column-reverse;
            border-radius: 0 0 16px 16px;
        }

        .left,
        .right {
            flex: unset;
            width: 100%;
            height: 50%;
        }

        .left {
            height: auto;
            border-radius: 0 0 16px 16px;
        }

        .right {
            height: 150px;
            transition: all 0.5s ease;
            box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.06);
        }

        .content {
            padding: 0.5rem;
        }

        .overlay {
            width: 100%;
            padding: 0 1rem;
        }

        .token-container {
            flex-wrap: nowrap;
            justify-content: space-between;
        }

        .token-input {
            width: 3.3rem;
            height: 4.5rem;
            font-size: 2.25em;
            padding: 0rem 0.5rem;
        }

        .btn-paste-code {
            font-size: 1rem;
        }
    }


    /* Mobile (até 375px) */
    @media (max-width: 390px) {
        .overlay {
            align-items: unset;
            padding: 0px;
        }

        .information {
            font-size: 14px;
        }
    }

    /* Tablet (entre 577px e 768px) */
    @media (min-width: 577px) and (max-width: 768px) {
        .container {
            flex-direction: column-reverse;
            border-radius: 0 0 16px 16px;
        }

        .left,
        .right {
            flex: unset;
            width: 100%;
            height: 50%;
        }

        .left {
            height: auto;
            border-radius: 0 0 16px 16px;
        }

        .right {
            height: 150px;
            transition: all 0.5s ease;
            box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.06);
        }

        .overlay {
            width: 90%;
            max-width: 28rem;
            margin: 0 auto;
        }

        .token-input {
            width: 3.5rem;
            height: 4.5rem;
            font-size: 2.25rem;
            padding: 0rem 0.5rem;
        }

        .btn-paste-code {
            font-size: 1rem;
        }
    }


.spinner {
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
