/* =========================================
   Reset e Configurações Gerais
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body, html {
    height: 100%;
    background-color: #f4f6f9;
}

.login-container {
    display: flex;
    height: 100vh;
}

/* =========================================
   Lado Esquerdo (Imagem e Texto)
   ========================================= */
.login-left {
    flex: 1;
    background: linear-gradient(rgba(33, 43, 54, 0.85), rgba(33, 43, 54, 0.85)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover;
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.btn-voltar {
    position: absolute;
    top: 40px;
    left: 50px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.btn-voltar:hover {
    opacity: 1;
}

.left-content {
    max-width: 500px;
    margin: 0 auto;
}

.left-content h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.left-content h1 span {
    color: #63d134; 
}

.left-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

/* =========================================
   Lado Direito (Caixa Branca e Formulário)
   ========================================= */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-radius: 12px;
    text-align: center;
}

.logo {
    max-width: 160px;
    margin-bottom: 15px;
}

.subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 35px;
}

/* Abas (Entrar / Criar Conta) */
.tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #adb5bd;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #5c6bc0;
}

.tab-btn.active {
    color: #5c6bc0; 
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #5c6bc0;
}

/* =========================================
   Campos do Formulário
   ========================================= */
form {
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 15px;
    color: #adb5bd;
    font-size: 14px;
}

.input-icon input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    color: #495057;
}

.input-icon input:focus {
    border-color: #5c6bc0;
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);
}

/* =========================================
   Ações (Lembrar-me e Botão)
   ========================================= */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 13px;
}

.lembrar-me {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.esqueci-senha {
    color: #5c6bc0;
    text-decoration: none;
    font-weight: 600;
}

.esqueci-senha:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #5c6bc0;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #4b58a6;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* =========================================
   Classes de Controle (JavaScript)
   ========================================= */
.hidden {
    display: none !important;
}

/* =========================================
   Responsivo (Para Celulares)
   ========================================= */
@media (max-width: 850px) {
    .login-container {
        flex-direction: column;
    }
    .login-left {
        display: none; 
    }
    .login-right {
        padding: 20px;
    }
    .login-card {
        box-shadow: none;
        padding: 20px;
    }
}