﻿html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow: hidden;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.login-page {
    background: #ffffff !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
input,
textarea,
select,
button,
label,
a,
p,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.glyphicon,
[class^="glyphicon-"],
[class*=" glyphicon-"] {
    font-family: "Glyphicons Halflings" !important;
}

.fa,
[class^="fa-"],
[class*=" fa-"] {
    font-family: FontAwesome !important;
}

.login-page-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    background: #ffffff;
}

.login-banner {
    position: relative;
    display: none;
    width: 50%;
    overflow: hidden;
    background: var(--mc-navy-800);
}

.login-vector {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

.login-banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-center {
    width: 58%;
    max-width: 380px;
    margin-bottom: 20%;
}

.logo-bottom {
    position: absolute;
    right: 40px;
    bottom: 42px;
    width: 40%;
    max-width: 250px;
    height: auto;
}

.login-form-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-form-wrapper {
    width: 90%;
    max-width: 380px;
}

.login-form-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-form-logo img {
    display: block;
    width: 142px;
    max-width: 70%;
    height: auto;
}

.login-form-wrapper .subtitle {
    margin: 0 0 32px;
    color: var(--color-muted);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.login-field {
    margin-bottom: 18px;
}

.login-form-wrapper .form-label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.login-form-wrapper .input-group {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--mc-border-strong);
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login-form-wrapper .input-group:focus-within {
    border-color: var(--mc-primary);
    box-shadow: var(--mc-focus);
}

.login-form-wrapper .input-group-addon {
    width: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--color-muted);
    font-size: 16px;
}

.login-form-wrapper .input-group:focus-within .input-group-addon {
    color: var(--mc-primary);
}

.login-form-wrapper .input-group-action {
    cursor: pointer;
    border-left: none;
}

button.input-group-action {
    padding: 0;
}

.login-form-wrapper .form-control {
    height: 46px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--mc-text);
    font-size: 15px;
}

.login-form-wrapper .form-control:focus {
    box-shadow: none;
}

.login-form-wrapper .form-control::placeholder {
    color: var(--mc-text-3);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 28px;
}

.remember-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.remember-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.remember-switch__slider {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: var(--mc-border-strong);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.remember-switch__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}

.remember-switch input:checked + .remember-switch__slider {
    background: var(--color-secondary);
}

.remember-switch input:checked + .remember-switch__slider::before {
    transform: translateX(20px);
}

.remember-switch input:focus + .remember-switch__slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.remember-switch__text {
    line-height: 24px;
}

.buttonContainer {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: none;
    transition: transform 0.16s ease, background-color 0.3s ease, color 0.3s ease;
}

.buttonContainer:hover,
.buttonContainer:focus {
    transform: scale(1.04);
    background: var(--color-hover);
    color: #ffffff;
    outline: none;
}

.buttonContainer:active {
    transform: scale(1);
    background: var(--color-primary);
}

.buttonContainer:disabled,
.buttonContainer.is-loading {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    cursor: wait;
    transform: none;
}

.login-forgot-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
    padding: 4px 0;
    border: 0;
    background: none;
    text-align: center;
    color: var(--color-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.login-forgot-link:hover,
.login-forgot-link:focus {
    color: var(--color-hover);
    text-decoration: none;
}

.login-forgot-link:disabled {
    cursor: wait;
    opacity: 0.85;
}

/* Só aparece enquanto o endereço da interface de recuperação é buscado. */
.login-forgot-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: login-forgot-spin 0.7s linear infinite;
}

.login-forgot-link.is-loading .login-forgot-spinner {
    display: inline-block;
}

@keyframes login-forgot-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .login-forgot-spinner { animation-duration: 2s; }
}

.login-form-wrapper input[type="password"]::-ms-reveal,
.login-form-wrapper input[type="password"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

@media (min-width: 900px) {
    .login-banner {
        display: block;
    }

    .login-form-section {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 24px;
    }

    .login-form-wrapper {
        width: 100%;
    }

    .login-form-logo img {
        width: 128px;
    }
}
