* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    /* Imagem de Fundo customizada */
    background-image: url("../imagens/banner.png"); /* Substitua pelo caminho da sua imagem */
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    
    box-sizing: border-box; 
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

/* Adicionando Blur ao Background */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: inherit;
    filter: blur(0px); /* Ajuste o valor do blur conforme necessário */
    z-index: -1;
}

.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Card de Login */
.login-card {
    border: 1px solid #d2d2d76d;
    background-color: rgb(255, 255, 255);
    width: 100%;
    max-width: 440px;
    padding: 44px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    overflow: hidden;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.brand-logo {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

.identity-container {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    color: #1d1d1f;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-align: left;
}

.input-group {
    margin-bottom: 12px;
}

.input-field {
    width: 100%;
    border: 1px solid #d2d2d785;
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.input-field:focus {
    border-color: #0071e3;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.error-message {
    color: #ff3b30;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
    text-align: left;
}

.button-group {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.btn-submit {
    background-color: #0479ca;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #0263a9;
}

footer {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    font-size: 12px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   ANIMAÇÃO FLUIDA ESTILO MICROSOFT (SLIDE + FADE)
   ========================================================================== */
#loginForm {
    position: relative;
    width: 100%;
}

.form-step {
    width: 100%;
    display: none; /* Escondido por padrão */
    opacity: 0;
    transform: translateX(60px); /* Começa ligeiramente à direita */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
}

/* Quando entra em cena */
.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Quando sai para a esquerda */
.form-step.exit-left {
    display: none;
    opacity: 0;
    transform: translateX(-60px);
}

.user-identity-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 24px;
}

.btn-back {
    background: none;
    border: none;
    cursor: pointer;
    color: #86868b;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-back:hover {
    background: #f5f5f7;
    color: #0071e3;
}

.btn-back svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.user-badge {
    background: #f5f5f7;
    padding: 6px 14px 6px 6px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    max-width: 85%;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-email-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}