/* Reset básico */
body {
    font-family: 'Rawline', sans-serif !important;
    overflow-x: hidden;
    overflow-y: hidden;
}

html {
    overflow-x: hidden;
    overflow-y: hidden;
}

*,
::before,
::after {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: ui-sans-serif, system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    line-height: inherit;
}

h1, h2, h3, h6, p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

button, input {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
}

input::placeholder {
    opacity: 1;
    color: #9ca3af;
}

:disabled {
    cursor: default;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Classes utilitárias Tailwind usadas */
.ms-2 {
    margin-inline-start: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-7 {
    margin-top: 1.75rem;
}

.mt-8 {
    margin-top: 2rem;
}

.flex {
    display: flex;
}

.hidden {
    display: none;
}

.h-16 {
    height: 4rem;
}

.h-fit {
    height: -moz-fit-content;
    height: fit-content;
}

.h-full {
    height: 100%;
}

.w-full {
    width: 100%;
}

.w-screen {
    width: 100%;
    max-width: 100vw;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-5 {
    gap: 1.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-sm {
    border-radius: 0.125rem;
}

.border-\[1px\] {
    border-width: 1px;
}

.border-b-\[1px\] {
    border-bottom-width: 1px;
}

.border-black\/50 {
    border-color: rgb(0 0 0 / 0.5);
}

.border-black\/80 {
    border-color: rgb(0 0 0 / 0.8);
}

.bg-\[\#1351b4\] {
    background-color: rgb(19 81 180);
}

.bg-green-700 {
    background-color: rgb(21 128 61);
}

.bg-white {
    background-color: rgb(255 255 255);
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.pb-1 {
    padding-bottom: 0.25rem;
}

.pt-10 {
    padding-top: 2.5rem;
}

.text-center {
    text-align: center;
}

.font-sans {
    font-family: ui-sans-serif, system-ui, sans-serif;
}

.text-\[10px\] {
    font-size: 10px;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-bold {
    font-weight: 700;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-semibold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.text-blue-800 {
    color: rgb(30 64 175);
}

.text-green-700 {
    color: rgb(21 128 61);
}

.text-white {
    color: rgb(255 255 255);
}

.placeholder\:text-xs::placeholder {
    font-size: 0.75rem;
    line-height: 1rem;
}

.placeholder\:text-black\/90::placeholder {
    color: rgb(0 0 0 / 0.9);
}

.focus\:bg-yellow-100:focus {
    background-color: rgb(254 249 195);
}

@media (min-width: 1024px) {
    .lg\:block {
        display: block;
    }
}

/* Fontes Rawline - apenas as usadas */
@font-face {
    font-family: 'Rawline';
    font-style: normal;
    font-weight: 400;
    src: local('Rawline'), url('https://fonts.cdnfonts.com/s/19714/rawline-400.woff') format('woff');
}

@font-face {
    font-family: 'Rawline';
    font-style: normal;
    font-weight: 300;
    src: local('Rawline'), url('https://fonts.cdnfonts.com/s/19714/rawline-300.woff') format('woff');
}

@font-face {
    font-family: 'Rawline';
    font-style: normal;
    font-weight: 600;
    src: local('Rawline'), url('https://fonts.cdnfonts.com/s/19714/rawline-600.woff') format('woff');
}

@font-face {
    font-family: 'Rawline';
    font-style: normal;
    font-weight: 700;
    src: local('Rawline'), url('https://fonts.cdnfonts.com/s/19714/rawline-700.woff') format('woff');
}

/* Esconder texto de acessibilidade em mobile */
@media (max-width: 768px) {
    .acessibilidade-texto {
        display: none;
    }
    
    .banco-modal-content {
        width: 360px;
    }
}

/* Spinner do botão Continuar */
.spinner {
    display: inline-block;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.spinner-svg {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#continuar-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modal de seleção de banco */
.banco-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.banco-modal-content {
    background: white;
    border-radius: 8px;
    width: 380px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-in-out;
}

.banco-modal.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

.banco-modal.fade-out .banco-modal-content {
    animation: slideOut 0.3s ease-in-out;
}

.banco-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
}

.banco-modal-title-section {
    flex: 1;
}

.banco-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.banco-modal-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.banco-modal-description strong {
    color: #000000;
    font-weight: 700;
}

.banco-modal-body {
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 350px;
    min-height: 0;
    box-sizing: border-box;
    width: 95%;
}

.banco-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.banco-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 24px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.banco-item:hover {
    background-color: #f9fafb;
}

.banco-item:disabled,
.banco-item[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.banco-spinner {
    display: inline-block;
    margin-left: auto;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.banco-error-message {
    display: inline-block;
    margin-left: auto;
    color: #dc2626;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.banco-logo {
    display: flex;
    align-items: center;
}

.banco-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.banco-name {
    font-size: 14px;
    color: #111827;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.banco-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.banco-modal-cancel-btn {
    width: 150px;
    padding: 10px 20px;
    background-color: #fff;
    color: #1351b4;
    border: 2px solid #1351b4;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 700;
}

.banco-modal-cancel-btn:hover {
    background-color: #f9fafb;
    border-color: #0F3D8C;
    color: #0F3D8C;
}

.cpf-error-message {
    background: #fff5c2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 12px 16px;
    padding-right: 0.7rem;
    border-radius: 4px;
    box-shadow: 0 2px 3px #00000029;
    border: 1px solid #d6b300;
    font-size: 0.875rem;
    color: #856404;
}

.cpf-error-message i {
    font-size: 1rem;
    color: #d6b300;
}

.senha-error-message {
    background: #fff5c2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 12px 16px;
    padding-right: 0.7rem;
    border-radius: 4px;
    box-shadow: 0 2px 3px #00000029;
    border: 1px solid #d6b300;
    font-size: 0.875rem;
    color: #856404;
}

.senha-error-message i {
    font-size: 1rem;
    color: #d6b300;
}

/* Esconder primeiro container em dispositivos móveis */
@media (max-width: 768px) {
    .senha-first-container {
        display: none !important;
    }
}
