/* ==================== */
/* LAYOUT DA PÁGINA     */
/* ==================== */
body {
    margin: 0;
    padding: 0;
    background-color: var(--surface-secondary-background);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    min-height: 700px;
    gap: 64px;
    padding: 24px;
    box-sizing: border-box;
}

/* ==================== */
/* LADO ESQUERDO        */
/* ==================== */
.login-banner {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    
    background-image: url('../../images/login_image.jpg');
    background-size: cover;
    background-position: center;
}

/* Overlay escuro */
.login-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(28, 34, 39, 0) 0%, rgba(28, 34, 39, 0.9) 100%);
    z-index: 1;
}

.login-banner-content {
    position: relative;
    z-index: 2; /* Fica acima do overlay */
    color: var(--off-white);
}

.login-banner-content h2 {
    margin: 0 0 16px 0;
}

.login-banner-content p {
    margin: 0;
    color: var(--off-white-o75);
}

/* ==================== */
/* LADO DIREITO (FORM)  */
/* ==================== */
.login-form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 460px;
}

.login-header {
    margin-bottom: 32px;
}

.login-header h1 {
    margin: 0 0 8px 0;
    color: var(--surface-primary-foreground);
}

.login-header p {
    margin: 0;
    color: var(--surface-primary-alternative);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.forgot-password-link {
    font-size: 14px;
    color: var(--surface-primary-alternative);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: var(--surface-primary-foreground);
}

/* Alinhamento dos botões sociais lado a lado */
.social-buttons-row {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.social-buttons-row .btn-social {
    flex: 1;
    padding: 12px 16px;
}

/* Rodapé do formulário */
.login-footer {
    text-align: center;
    color: var(--surface-primary-alternative);
}

.login-footer a {
    color: var(--surface-primary-foreground);
    text-decoration: none;
    font-weight: 600;
}

/* ==================== */
/* FORMULÁRIO (COLUNAS) */
/* ==================== */
.form-row {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.form-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

/* Em telas muito pequenas (celulares), empilha os campos */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 24px;
    }
}