.login-container {
    height: 100vh;
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.olhos {
    border: hidden;
    background: transparent;
}

.voltar {
    margin-left: 20px;
    margin-top: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2), inset 0px 1px 3px rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 10px;
    max-width: 100px;
}

.login-form-container {
    flex: 1;
    background-color: var(--fundo);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: var(--texto) !important;
}

.login-image-container {
    flex: 1;
    height: 100vh;
    background: var(--fundo);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-image-container::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('/api/placeholder/800/1200') center/cover no-repeat;
    opacity: 0.3;
    animation: slow-rotate 30s linear infinite;
}

@keyframes slow-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--fundo);
    z-index: 1;
}

.image-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Mantém a proporção e cobre todo o espaço */
}

.image-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.image-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    height: 60px;
    margin-bottom: 1rem;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--texto) !important;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--texto) !important;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 500;
    color: var(--texto) !important;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    background-color: var(--botao);
    transition: all 0.3s ease;
    color: var(--texto);
}

.form-control:focus {
    border-color: var(--botao);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    color: var(--texto);
}

.form-control::placeholder {
    color: var(--texto);
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--texto) !important;
    cursor: pointer;
    padding: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--botao), var(--cor-h1));
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.login-links a {
    color: var(--texto) !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #2e71ce;
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #2a6dcc;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--texto) !important;
}

.login-footer a {
    color: var(--botao) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: var(--texto) !important;
}

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 40px;
}

.olhos {
    right: 10px;
    top: 50px;
    color: var(--texto);
    background: transparent;
    font-size: 18px;
    pointer-events: all;
    z-index: 1;
}

.olhos:hover {
    color: #fff;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    animation: fadeIn 0.8s ease-out forwards;
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        overflow-y: visible;
        /* Permite rolagem */
        height: auto;
        min-height: 100vh;
    }

    .login-image-container {
        display: none;
        height: auto;
        /* Permite ajuste dinâmico */
        min-height: 250px;
        order: -1;
    }

    .login-form-container {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .login-form-container {
        padding: 2rem 1rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .image-content h2 {
        font-size: 2rem;
    }
}


/* Botão MetaMask */
.metamask-btn {
    background-color: #f6851b;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
}

.metamask-btn:hover {
    background-color: #e2761b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 133, 27, 0.2);
}

.metamask-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.metamask-logo {
    width: 24px;
    height: 24px;
}

.btn-text {
    transition: opacity 0.3s;
}

.metamask-btn.loading .btn-text {
    opacity: 0;
}

/* Spinner CSS puro */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    position: absolute;
    left: calc(50% - 10px);
    opacity: 0;
    animation: spin 1s ease-in-out infinite;
    transition: opacity 0.3s;
}

.metamask-btn.loading .spinner {
    opacity: 1;
}

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