/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --cor-primaria: #fcd036;
    --cor-primaria-hover: #e4bb31;
    --cor-texto: #1a1a1a;
    --cor-texto-claro: #6c757d;
    --cor-fundo: #f8f9fa;
    --cor-branco: #ffffff;
    --cor-perigo: #dc3545;
    --cor-borda: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
}

/* --- ESTRUTURA PRINCIPAL (SPLIT SCREEN) --- */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-branding {
    width: 50%;
    background-image: url('https://images.unsplash.com/photo-1541534401786-2077ed85a34d?q=80&w=2070'); /* IMAGEM DE EXEMPLO - SUBSTITUA PELA SUA */
    background-size: cover;
    background-position: center;
    color: var(--cor-branco);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}
/* Overlay escuro para melhor legibilidade do texto */
.login-branding::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.branding-content {
    position: relative;
    text-align: center;
    z-index: 1;
}
.branding-content .team-logo {
    max-width: 150px;
    margin-bottom: 20px;
}
.branding-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.branding-content p {
    font-size: 1.1rem;
    max-width: 400px;
}

/* --- ÁREA DO FORMULÁRIO --- */
.login-form-area {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-content {
    width: 100%;
    max-width: 400px;
}
.form-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.form-content .subtitle {
    color: var(--cor-texto-claro);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}
.input-with-icon {
    position: relative;
}
.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cor-texto-claro);
}
.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.input-group input:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(252, 208, 54, 0.3);
}

.form-options {
    text-align: right;
    margin-bottom: 20px;
}
.form-options a {
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-size: 0.9rem;
}
.form-options a:hover {
    text-decoration: underline;
}

.forgot-password-link {
    color: #d62828;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.forgot-password-link:hover {
    color: #b71f1f;
    text-decoration: underline;
}

/* --- BOTÕES E SEPARADOR --- */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-primary {
    background-color: var(--cor-primaria);
    color: var(--cor-texto);
    border-color: var(--cor-primaria);
}
.btn-primary:hover {
    background-color: var(--cor-primaria-hover);
    border-color: var(--cor-primaria-hover);
}
.btn-secondary {
    background-color: transparent;
    color: var(--cor-texto);
    border-color: var(--cor-borda);
}
.btn-secondary:hover {
    background-color: var(--cor-fundo);
    border-color: var(--cor-texto);
}

.btn-join-highlight {
    background: linear-gradient(135deg, #ff8f00 0%, #fcd036 45%, #ffe082 100%);
    border-color: #ffb300;
    color: #2a1d00;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 10px 24px rgba(252, 176, 0, 0.35);
    transform: translateY(0);
}

.btn-join-highlight:hover {
    background: linear-gradient(135deg, #fb8c00 0%, #f6c827 45%, #ffd54f 100%);
    border-color: #f57f17;
    color: #211600;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(245, 127, 23, 0.4);
}

.separator {
    text-align: center;
    color: var(--cor-texto-claro);
    margin: 20px 0;
    position: relative;
}
.separator::before, .separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background-color: var(--cor-borda);
}
.separator::before { left: 0; }
.separator::after { right: 0; }

/* --- AVISOS DE ERRO --- */
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
    }
    .login-branding, .login-form-area {
        width: 100%;
    }
    .login-branding {
        min-height: 250px;
        padding: 20px;
    }
    .branding-content h1 { font-size: 2rem; }
    .login-form-area { padding: 30px 20px; }
}

/* --- MODAL RECUPERACAO DE SENHA --- */
.recovery-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.recovery-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.recovery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(252, 208, 54, 0.28), rgba(18, 18, 18, 0.7));
    backdrop-filter: blur(2px);
}

.recovery-modal-panel {
    position: relative;
    width: min(100%, 520px);
    background: linear-gradient(155deg, #ffffff 0%, #fffdf5 100%);
    border: 1px solid rgba(252, 208, 54, 0.45);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.28s ease;
}

.recovery-modal.show .recovery-modal-panel {
    transform: translateY(0) scale(1);
}

.recovery-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    background-color: #f3f4f6;
    color: #2d2d2d;
}

.recovery-modal-close:hover {
    background-color: #e8eaee;
}

.recovery-modal-header {
    margin-bottom: 18px;
}

.recovery-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #0f7a42;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.recovery-modal-header h3 {
    font-size: 1.55rem;
    margin-bottom: 8px;
}

.recovery-modal-header p {
    color: var(--cor-texto-claro);
    line-height: 1.5;
}

.recovery-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recovery-form label {
    font-weight: 600;
    font-size: 0.95rem;
}

.recovery-form input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recovery-form input:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 4px rgba(252, 208, 54, 0.22);
}

.recovery-feedback {
    margin-top: 14px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.93rem;
    display: none;
}

.recovery-feedback.show {
    display: block;
}

.recovery-feedback.info {
    background-color: #f2f7ff;
    color: #1f4f98;
}

.recovery-feedback.success {
    background-color: #e9f9ef;
    color: #1f7a42;
}

.recovery-feedback.warning {
    background-color: #fff6e5;
    color: #945f00;
}

.recovery-feedback.error {
    background-color: #fdecec;
    color: #a42828;
}

@media (max-width: 560px) {
    .recovery-modal-panel {
        padding: 22px 18px;
    }

    .recovery-modal-header h3 {
        font-size: 1.3rem;
    }
}