@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@700;800&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.login-page-container {
    width: 100vw;
    height: 100vh;
    background: white;
}

/* PAINEL ESQUERDO (Banner) */
@keyframes login-gradient-move {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.login-vector {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

.login-banner {
    /* Mistura primária com dark/black para evitar faixa central muito clara no gradiente animado */
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color-dark, var(--color-emphasis)) 100%, black 22%),
            color-mix(in srgb, var(--primary-color, var(--color-brand)) 42%, var(--primary-color-dark, var(--color-emphasis)) 58%),
            color-mix(in srgb, var(--primary-color-dark, var(--color-emphasis)) 100%, black 22%));
    background-size: 200% 200%;
    animation: login-gradient-move 16s ease-in-out infinite;
    position: relative;
}

html[data-theme]:not([data-theme="default"]) .login-banner {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color-dark, var(--color-emphasis)) 100%, black 18%),
            color-mix(in srgb, var(--primary-color, var(--color-brand)) 38%, var(--primary-color-dark, var(--color-emphasis)) 62%));
    background-size: 200% 200%;
    animation: login-gradient-move 16s ease-in-out infinite;
}

.login-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-center {
    width: 60%;
    max-width: 380px;
    margin-bottom: 30%;
}

.logo-bottom {
    position: absolute;
    bottom: 40px;
    right: 20px;
    width: 40%;
    max-width: 200px;
}

/* PAINEL DIREITO (Form) */
.login-form-wrapper {
    width: 90%;
    max-width: 380px;
}

.login-form-wrapper h2 {
    font-family: 'Manrope', sans-serif;
    color: var(--color-shell);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.login-form-wrapper h2 span {
    font-weight: 800;
}

.login-form-wrapper .subtitle {
    font-family: 'Inter', sans-serif;
    color: #727782;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.login-form-wrapper .form-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #727782;
    margin-bottom: 0.3rem;
}

.login-form-wrapper .input-group {
    border: 1px solid #ced4da;
    border-radius: 12px;
    height: 48px;
    overflow: hidden;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: #ffffff;
}

.login-form-wrapper .input-group-text {
    background: transparent;
    border: none;
    color: #727782;
    font-size: 18px;
}

.login-form-wrapper .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    padding-left: 0;
    color: #495057;
}

.login-form-wrapper .form-control::placeholder {
    color: #adb5bd;
}

.login-form-wrapper .input-group:focus-within {
    border-color: var(--color-shell);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-shell) 15%, transparent);
}

.login-form-wrapper .input-group:focus-within .input-group-text {
    color: var(--color-shell);
}

.form-check-input.rounded-circle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 4px !important;
    border: 2px solid #ced4da;
    background-color: transparent;
    display: inline-block;
    position: relative;
    margin-top: 0;
    cursor: pointer;
    transition: 0.2s;
}

.login-form-wrapper .form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.login-form-wrapper .form-check-label.subtitle {
    margin-bottom: 0 !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.form-check-input.rounded-circle:checked {
    background-color: var(--color-shell);
    border-color: var(--color-shell);
}

.form-check-input.rounded-circle:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 10px;
    color: #ffffff;
    transform: translate(-50%, -50%);
}

.link-recuperar {
    font-family: 'Inter', sans-serif;
    color: var(--color-shell);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.link-recuperar:hover {
    text-decoration: underline;
}

.buttonContainer {
    background: var(--color-shell);
    border-radius: 12px;
    height: 48px;
    border: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: white;
    font-size: 16px;
    transition: transform 0.16s ease, background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0px 10px 8px -6px rgba(0, 53, 106, 0.10), 0px 25px 20px -5px rgba(0, 53, 106, 0.10);
}

.buttonContainer:hover {
    transform: scale(1.05);
    background: var(--color-shell-hover);
    color: #ffffff !important;
}

.buttonContainer:active {
    transform: scale(1);
    background: var(--color-shell-active);
    color: #ffffff !important;
}

.buttonContainer:disabled,
.buttonContainer.is-loading {
    background: var(--color-shell) !important;
    color: #ffffff !important;
    border: none !important;
    opacity: 1 !important;
}

/* Esconde o botão nativo de visualizar senha do navegador (Edge/WebKit) */
.login-form-wrapper input[type="password"]::-ms-reveal,
.login-form-wrapper input[type="password"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.login-form-wrapper input[type="password"]::-webkit-credentials-auto-fill-button,
.login-form-wrapper input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none;
}