/* ===== PÁGINA DE LOGIN ===== */
.login-page {
    background: linear-gradient(135deg, var(--cinza-claro) 0%, #e8f0e8 100%);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== CONTAINER PRINCIPAL ===== */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--branco);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--sombra-forte);
}

/* ===== CARD DE LOGIN ===== */
.login-card {
    padding: 60px 50px;
    background: var(--branco);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    margin-bottom: 25px;
}

.logo-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--verde-primario), var(--verde-secundario));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: var(--sombra);
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--preto);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--cinza);
    font-size: 1rem;
}

/* ===== FORMULÁRIO DE LOGIN ===== */
.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--preto);
    margin-bottom: 8px;
}

.form-label i {
    color: var(--verde-primario);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--borda);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--cinza-claro);
}

.form-control:focus {
    outline: none;
    border-color: var(--verde-primario);
    box-shadow: 0 0 0 3px rgba(15, 107, 58, 0.1);
    background: var(--branco);
}

/* Wrapper para campo de password */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--cinza);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--verde-primario);
}

/* Opções do formulário */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--cinza);
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--verde-primario);
}

.forgot-password {
    color: var(--verde-primario);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--verde-secundario);
    text-decoration: underline;
}

/* Botão de login */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--verde-primario), var(--verde-secundario));
    color: var(--branco);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 107, 58, 0.3);
}

.btn-login i {
    font-size: 1.2rem;
}

/* Seção de registro */
.register-section {
    text-align: center;
    margin: 25px 0;
    padding-top: 25px;
    border-top: 1px solid var(--borda);
}

.register-section p {
    color: var(--cinza);
    font-size: 0.95rem;
}

.register-section a {
    color: var(--verde-primario);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-section a:hover {
    color: var(--verde-secundario);
    text-decoration: underline;
}

/* Login social */
.social-login {
    margin-top: 30px;
}

.social-divider {
    text-align: center;
    position: relative;
    margin-bottom: 25px;
    color: var(--cinza);
    font-size: 0.9rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    height: 1px;
    background: var(--borda);
}

.social-divider::before {
    left: 0;
}

.social-divider::after {
    right: 0;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    padding: 12px;
    border: 1px solid var(--borda);
    border-radius: 10px;
    background: var(--branco);
    color: var(--preto);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn.google:hover {
    background: #DB4437;
    color: var(--branco);
    border-color: #DB4437;
}

.social-btn.facebook:hover {
    background: #4267B2;
    color: var(--branco);
    border-color: #4267B2;
}

/* ===== FEATURES (LADO DIREITO) ===== */
.login-features {
    background: linear-gradient(135deg, var(--verde-primario), var(--verde-secundario));
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    color: var(--branco);
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-item i {
    font-size: 2rem;
    color: var(--branco);
    opacity: 0.9;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* ===== MODAL DE REGISTRO ===== */
.register-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.register-modal-overlay.active {
    display: flex;
}

.register-modal {
    background: var(--branco);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.register-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--cinza-claro);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--preto);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.register-modal-close:hover {
    background: var(--verde-primario);
    color: var(--branco);
    transform: rotate(90deg);
}

.register-modal-content {
    padding: 40px;
}

.register-modal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--preto);
    margin-bottom: 10px;
    text-align: center;
}

.register-modal-content > p {
    color: var(--cinza);
    text-align: center;
    margin-bottom: 30px;
}

/* Formulário de registro */
.register-form {
    width: 100%;
}

.form-row {
    margin-bottom: 20px;
}

.btn-register {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--verde-primario), var(--verde-secundario));
    color: var(--branco);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 107, 58, 0.3);
}

/* Checkbox do registro */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--verde-primario);
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--cinza);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--verde-primario);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== ANIMAÇÕES ===== */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-features {
        display: none;
    }
    
    .login-card {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .login-page {
        padding: 40px 0;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .register-modal-content {
        padding: 30px 20px;
    }
    
    .register-modal-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px 15px;
    }
    
    .logo-icon-large {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .btn-login {
        padding: 14px;
    }
}

.logo-icon-large {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    overflow: hidden;
    padding: 10px;
    box-shadow: var(--sombra);
}

.logo-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}